Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #2

Open
wants to merge 294 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
294 commits
Select commit Hold shift + click to select a range
33ce658
Argh!
shirioko Jun 6, 2013
857d420
Added media upload request
shirioko Jun 7, 2013
f7cc05d
Fixed continuous receipt replay
shirioko Jun 7, 2013
416bcd0
Updated useragent and token
shirioko Jun 7, 2013
6d566ad
LINE BREAKS WAT R U DOIN? STAHP!
shirioko Jun 7, 2013
0de42b3
Updated chat host
shirioko Jun 10, 2013
a4436ed
Updated media sending
shirioko Jun 10, 2013
e3abe97
Partially fixed media upload
shirioko Jun 10, 2013
f17e0a7
Deleted output
shirioko Jun 10, 2013
7c9b134
Added image thumbnails
shirioko Jun 10, 2013
42081b7
Cleanup
shirioko Jun 11, 2013
a0d2651
Removed node data from debug output
shirioko Jun 13, 2013
4609922
Added debug check
shirioko Jun 13, 2013
e6a4f01
Fixes
shirioko Jun 13, 2013
1ca9a21
Methods to request and register a code for WhatsApp users.
mainlyer Jun 14, 2013
6ed39e1
Rename WhatsRegisterV2 to WhatsRegisterV2.cs
mainlyer Jun 14, 2013
48f95b3
Merge pull request #1 from mainlyer/6ed39e14a97f592bc5c192203b0dd6318…
shirioko Jun 14, 2013
fb5ca51
Added exception handling for contact sync
shirioko Jul 12, 2013
e0058e1
Merge branch 'master' of https://github.com/shirioko/WhatsAPINet
shirioko Jul 12, 2013
650d6e8
Updated client details to WP7
shirioko Jul 12, 2013
0f97481
Included WhatsRegisterV2.cs in project
shirioko Jul 12, 2013
3a998f5
Fixed WhatsRegisterV2 errors
shirioko Jul 12, 2013
c6af3f0
Updated code request URL
shirioko Jul 12, 2013
11269c3
Changed identity from MD5 to SHA
shirioko Jul 12, 2013
2c0dabe
Returned ToMD5String method for token generation
shirioko Jul 12, 2013
73a8196
Removed V1 registration
shirioko Jul 12, 2013
e9393ab
Added automatically sending nickname on login
shirioko Jul 12, 2013
af1569d
Updated example project
shirioko Jul 12, 2013
7094b66
Added RequestExist to WhatsRegisterV2.cs
shirioko Jul 12, 2013
3355171
Fixed SHA string encoding
shirioko Jul 15, 2013
fad27d1
Updated user agent to latest version
shirioko Jul 26, 2013
a91c400
Added WhatsConstant user agent to contact sync
shirioko Jul 26, 2013
ddfa4d1
Fixed encoding for all platforms
shirioko Jul 26, 2013
c9f6247
Updated to Android client details
shirioko Jul 29, 2013
f3766a8
removing whitespaces
fraga Aug 17, 2013
acceb92
Revert "Removed V1 registration"
fraga Aug 17, 2013
7f1b270
Merge pull request #2 from fraga/smallRefactor
shirioko Aug 19, 2013
b5728a0
Translation
shirioko Aug 19, 2013
0e8549b
Added WhatSocket class
shirioko Aug 19, 2013
41ea3bb
Implemented WhatSocket class for Login screen
shirioko Aug 19, 2013
9232e07
Added WhatSocket.Instance to WhatsAppPort
shirioko Aug 19, 2013
4066be0
Updated to latest working registration info
shirioko Aug 20, 2013
ca91624
Added registration form placeholder
shirioko Aug 20, 2013
f3bea4e
Fixed group panels and more
shirioko Aug 20, 2013
7fc9c4d
Renamed code input textbox
shirioko Aug 20, 2013
9ca9887
Added code request functionality
shirioko Aug 20, 2013
97a04a3
Added code register functionality
shirioko Aug 20, 2013
8ad4461
Latest changes
shirioko Aug 20, 2013
d43f065
Added cc and phone splitting in codeRequest
shirioko Aug 21, 2013
304d1d1
Added WhatsAppReg project
shirioko Aug 21, 2013
163f547
Added precompiled exe of WhatsAppReg
shirioko Aug 21, 2013
ac4adb8
Added handling of password response on codeRequest
shirioko Aug 21, 2013
7eb1c46
Updated WhatsAppReg to work with updated code
shirioko Aug 21, 2013
5367c7f
Step3 to new method to prevent duplicate code
shirioko Aug 21, 2013
fc7f5f6
Updated code to build with new V2 Reg code
shirioko Aug 21, 2013
c29a5aa
Added changes from WhatsAppReg to WhatsAppPort
shirioko Aug 21, 2013
743463f
Updated WhatsApiReg with latest WhatsAppApi.dll
shirioko Aug 21, 2013
b2ee388
Updated precompiled exe
shirioko Aug 21, 2013
4a59a72
Added optional identity parameter to V2 reg
shirioko Aug 21, 2013
1f6d644
Fixed making multiple requests
shirioko Aug 21, 2013
a990787
Added phone number parser
shirioko Aug 22, 2013
e9c3c7c
Added optional params language, locale and mcc
shirioko Aug 22, 2013
6811584
Updated WhatsAppReg to use phone number parser
shirioko Aug 22, 2013
b2de65f
Fixed warnings
shirioko Aug 22, 2013
9457288
Updated precompiled build to latest version
shirioko Aug 22, 2013
88b9174
Added optional salt for autogenerated hash
shirioko Aug 23, 2013
19cfc02
Added method to remove duplicate code
shirioko Aug 23, 2013
d737f0f
Removed WhatsAppReg (moved to WART repo)
shirioko Aug 23, 2013
ba798b4
Added receipt ack
shirioko Aug 24, 2013
2d87112
Added response output to code request
shirioko Aug 27, 2013
52e3b99
Fixed detected CC for North America
shirioko Aug 27, 2013
9c8d264
Merge pull request #47 from shirioko/master
perezdidac Aug 28, 2013
a47b4ff
Removed old unused class
shirioko Aug 30, 2013
26c7e34
Removed registration token and build hash
shirioko Aug 30, 2013
588385d
Added getToken method
shirioko Aug 30, 2013
9ef0c12
Fixed MCC splitting
shirioko Sep 6, 2013
7dfc919
Added iplimit detection and urlencode method
shirioko Sep 6, 2013
7eaff89
Updated README.md
shirioko Sep 6, 2013
abb4d67
Added offline token generator
shirioko Sep 25, 2013
fd882db
Updated to latest version details
shirioko Sep 25, 2013
324a165
Implemented offline token generator
shirioko Sep 25, 2013
51b5f32
Removed old code
shirioko Sep 29, 2013
8295cc2
Changed FunXMPP to port 443 (proxy safe)
shirioko Sep 29, 2013
5a3619c
Merge branch 'master' of https://github.com/perezdidac/WhatsAPINet
shirioko Oct 9, 2013
fcfd953
Update README.md
shirioko Oct 9, 2013
8f5cc37
Renamed class and property
shirioko Oct 17, 2013
e69d368
Updated client details to 2.11.102
shirioko Oct 18, 2013
6eb0637
Updated client details to 2.11.113
shirioko Nov 1, 2013
f8bbed8
Updated to version 2.11.125
shirioko Nov 11, 2013
444c0a4
Added SetPhoto method wrapper
shirioko Nov 15, 2013
8238909
Updated client details to 2.11.134
shirioko Nov 20, 2013
5886c85
Added response output to exist request
shirioko Nov 21, 2013
2e5e6c5
Update ProtocolTreeNode.cs
shirioko Nov 26, 2013
f5a9221
Added MessageVideo
shirioko Nov 26, 2013
7b4d33c
Added MessageAudio
shirioko Nov 26, 2013
928f6ef
Merge branch 'master' of https://github.com/perezdidac/WhatsAPINet
shirioko Nov 26, 2013
0446b41
Changed GetJID to static method
shirioko Dec 2, 2013
8d1e177
Added message broadcasting
shirioko Dec 2, 2013
28ab585
Updated client details to 2.11.139
shirioko Dec 5, 2013
4bda5aa
Added SendUnavailable and fixed messages
shirioko Dec 5, 2013
b4cbc78
Added hiding online status
shirioko Dec 5, 2013
f5dca73
Added JID conversion to SendGetPhoto
shirioko Dec 6, 2013
675b5d1
Updated to 2.11.144
shirioko Dec 13, 2013
45ba8ab
Rewritten hidden mode handling
shirioko Dec 13, 2013
4ac575a
Added overloaded codeRequest method
shirioko Dec 13, 2013
61c840e
Added GetJID to group methods
shirioko Dec 17, 2013
501154d
Added group query response handling
shirioko Dec 17, 2013
2db4a95
Removed secondary ID generation
shirioko Dec 17, 2013
6e5b436
Updated FMessage identifier
shirioko Dec 17, 2013
e06e3f3
Cleaned up all secondary id generation
shirioko Dec 17, 2013
c160a1f
First draft of new event system
shirioko Dec 17, 2013
9a02622
More events
shirioko Dec 17, 2013
bda85b4
Changed WhatsUser method to use generic GetJID
shirioko Dec 23, 2013
bff3b0d
Finished up events in WhatsApp.cs
shirioko Dec 23, 2013
c900ba4
Updated example project to use events
shirioko Dec 23, 2013
50df336
Updated client details to Android 2.11.151
shirioko Dec 24, 2013
2f99fd5
Fixed array out of bounds exception
shirioko Dec 24, 2013
c6e2229
Updated events (again)
shirioko Dec 24, 2013
f31da05
Fixed parsing location to double
shirioko Dec 27, 2013
d5b1c27
Merge branch 'master' of https://github.com/shirioko/WhatsAPINet
shirioko Dec 27, 2013
7177cd6
Fixed nullPointerException in media upload
shirioko Jan 2, 2014
65335e4
Merge branch 'master' of https://github.com/shirioko/WhatsAPINet
shirioko Jan 2, 2014
42c0698
Fixed onGetMessageDelegate
shirioko Jan 4, 2014
145a40a
Added SendSync
shirioko Jan 23, 2014
5e4dd16
Got WAUTH2 to finally work
shirioko Jan 28, 2014
bdd9b9b
Removed deprecated files
shirioko Jan 28, 2014
33623b2
Fixed text message handler
shirioko Jan 28, 2014
179746c
Implementing new WAUTH2 FunXMPP
shirioko Jan 28, 2014
b736b96
Bedtime checkin
shirioko Jan 28, 2014
3606cf6
Fixed sending text messages
shirioko Jan 29, 2014
031cbbd
Working sync and event handler
shirioko Feb 13, 2014
bf099c8
Fixed message receipts
shirioko Mar 6, 2014
a6f9928
Fixed chat states (typing/paused)
shirioko Mar 6, 2014
6770523
FUCK YOU GIT!
shirioko Mar 15, 2014
2798aa6
Added option to not auto receipt messages
shirioko Mar 16, 2014
a6092d6
Changed default auto receipt to true
shirioko Mar 16, 2014
29f5297
Changed sendMessageReceived to public
shirioko Mar 16, 2014
201c6c4
Fixed media upload & sending
shirioko Mar 16, 2014
5320da2
Res bump to 2.11.200
shirioko Mar 22, 2014
50ca409
Fixed group functions
shirioko Mar 23, 2014
c2ba637
Fixed setting profile picture
shirioko Mar 23, 2014
24ab926
fixed setting profile picture
shirioko Mar 25, 2014
0620c24
Updated registration constants to 2.11.209
shirioko Apr 8, 2014
710f25a
Updated version details to 2.11.224
shirioko Apr 19, 2014
9cded2b
Added buffered reading of socket
shirioko Apr 24, 2014
359c796
Removed while loop in Socket_read
shirioko Apr 24, 2014
29a74c7
Cleaned up login and inbound data processing
shirioko Apr 24, 2014
f83442d
Don't throw exception on receiving 0 bytes
shirioko Apr 24, 2014
4b3b7e9
Revert "Removed while loop in Socket_read"
shirioko Apr 24, 2014
a1952b6
Added sleep when waiting for incoming data
shirioko Apr 24, 2014
43d80b9
Cleaned up auth header
shirioko Apr 24, 2014
368bfdf
Fixed server and client receipt events
shirioko Apr 24, 2014
2b8e5f7
Fixed media upload
shirioko Apr 24, 2014
94d3689
Fixed nullPointerException on empty response
shirioko Apr 25, 2014
3f256a4
Improved exception handling on socket disconnect
shirioko Apr 25, 2014
ff9d196
Added oneshot login using nextChallenge data
shirioko Apr 25, 2014
1e3b274
Added oneshot login to WhatsTest project
shirioko Apr 25, 2014
f6833a9
Added exception handling on sending data
shirioko Apr 25, 2014
2c8b56b
Moved WhatsSendHandler code to WhatsApp
shirioko Apr 25, 2014
835b9e6
Removed unused property in FMessage
shirioko Apr 25, 2014
2a5892e
Removed unused classes
shirioko Apr 25, 2014
f183e16
Added MNC to countries.csv
shirioko Apr 25, 2014
b53b357
Modified PhoneNumber to use new MNC data
shirioko Apr 25, 2014
3f98cde
Fixed WhatsAppPort build errors
shirioko Apr 25, 2014
bde2fb6
Added exception handler for Socket_send
shirioko Apr 25, 2014
35b53b1
HurrDurr
shirioko Apr 25, 2014
490a128
Added sendGetStatuses()
shirioko Apr 25, 2014
bacb51a
Moved node handlers into separate methods
shirioko Apr 25, 2014
7724c0f
Abstracted out WA stuff into separate classes
shirioko Apr 25, 2014
f7831d4
Added result handler for sendGetStatuses()
shirioko Apr 25, 2014
93434e3
More abstraction
shirioko Apr 25, 2014
7acf6d1
Moved base classes to Base subdir
shirioko Apr 25, 2014
fe1690b
Moar abstraction!!!1!
shirioko Apr 25, 2014
98cc7c5
Added subject notification placeholder
shirioko Apr 26, 2014
fa90ca4
Added placeholder for contact notification
shirioko Apr 28, 2014
704f22d
Fixed SendGetServerProperties
shirioko Apr 28, 2014
9c76572
Simplified calls to registration functionality
shirioko Apr 28, 2014
5384f87
Fixed registration call in WhatsAppPort
shirioko Apr 28, 2014
0b7bcd1
Fixed WhatsTest build errors
shirioko Apr 29, 2014
ee2f4bb
support for Windows and Unix line breaks in csv
shirioko Apr 29, 2014
a8c61c0
Delete old condition to capture lastseen
w33ds92 Apr 30, 2014
47d5f82
Merge pull request #126 from w33ds92/patch-1
shirioko Apr 30, 2014
2775c78
Fixed format string
shirioko Apr 30, 2014
0d084d5
Use absolute path for nexchallenge.dat
shirioko May 1, 2014
7467228
Added placeholder for participant notification
shirioko May 31, 2014
173ff1a
Updated reg details to 2.11.254
shirioko May 31, 2014
80e9549
Added privacy settings
shirioko May 31, 2014
fbbc335
Added requesting privacy settings from server
shirioko May 31, 2014
b3a4b88
Cleaned up and added handler for privacy settings
shirioko May 31, 2014
2237c54
Cleaned up unnecessary code
shirioko May 31, 2014
7d2dc75
Moved some code to new ApiBase superclass
shirioko May 31, 2014
c9940f1
Fixed privacy category names
shirioko May 31, 2014
38301de
Added event for getting privacy settings
shirioko May 31, 2014
ada9bcd
Added DebugAdapter helper class
shirioko May 31, 2014
be91109
Removed all calls to console object from API
shirioko May 31, 2014
57d2c69
Fixed 501 error when not providing full JID
shirioko May 31, 2014
d780ccd
Added MessageVcard
shirioko May 31, 2014
dba7967
Automatic GJID conversion in SendAddParticipants
shirioko May 31, 2014
60c8980
Fixed broadcast
shirioko Jun 1, 2014
59ef433
Merge branch 'master' of https://github.com/perezdidac/WhatsAPINet
shirioko Jun 1, 2014
beb6748
Removed all System.IO.File calls from WhatsAppApi
shirioko Jun 1, 2014
f71472b
Normalized method names
shirioko Jun 1, 2014
599ee6b
Abstracted out FMessage generation for media
shirioko Jun 1, 2014
a069046
Fixed stupid typos
shirioko Jun 1, 2014
47aaa17
Added image, audio & video broadcast support
shirioko Jun 1, 2014
9271270
Fixed build errors in WhatsAppPort
shirioko Jun 1, 2014
6cb543c
Fixed errors and added more handlers in WhatsTest
shirioko Jun 1, 2014
95c3851
Added trimming of 0 and + in GetJID
shirioko Jun 1, 2014
de6b9b9
Added message id return to SendMessage
shirioko Jun 13, 2014
1167c95
Fixed null pointer when parsing sync result
shirioko Jun 13, 2014
381983d
Automatically add '+' sign to numbers before sync
shirioko Jun 13, 2014
97b2a78
Updated client details to 2.11.264
shirioko Jul 1, 2014
3742b66
Meh
shirioko Jul 1, 2014
11cac90
Updated client details to 2.11.272
shirioko Jul 1, 2014
e3a5ea6
Fixed SendDeleteAccount
shirioko Jul 29, 2014
d392ee9
Auto convert to JID in participant manipulation
shirioko Jul 31, 2014
9812206
Merge branch 'master' of https://github.com/perezdidac/WhatsAPINet
shirioko Jul 31, 2014
c93689b
Fixed some nullPointer exceptions
shirioko Aug 1, 2014
8b51679
Fixed SendStatusUpdate
shirioko Aug 1, 2014
43d60cd
Added raw data length output to NodeString
shirioko Aug 1, 2014
ab8b2b9
Added image processor helper methods
shirioko Aug 1, 2014
f699cbf
Removed modification of buffer sizes
shirioko Aug 1, 2014
17305cd
Automatically pre-process profile picture & thumb
shirioko Aug 1, 2014
563ad43
Made thumbnailBytes in SendSetPhoto optional
shirioko Aug 1, 2014
de342b2
Changed ClearDirty to protected
shirioko Aug 1, 2014
b1d6570
Added support for group creation callback
shirioko Aug 1, 2014
cf76f26
Added node to all message delegates
shirioko Aug 1, 2014
5db70c9
Added participant notification events
shirioko Aug 1, 2014
c7ee4bd
Added timestamp to DateTime conversion methods
shirioko Aug 1, 2014
1553189
Added participant notification handler
shirioko Aug 1, 2014
67b9fee
Added subject notification handler
shirioko Aug 1, 2014
8f40ea1
Configure SyncMode and Synccontext as enum
shirioko Aug 1, 2014
1b8e5cc
Changed accessors
shirioko Aug 1, 2014
00d32f1
Name in SendAvailableForChat is optional
shirioko Aug 1, 2014
edaab46
Update frmRegister.cs
bpanigrahi Aug 6, 2014
0d02bf5
Merge pull request #187 from bpanigrahi/patch-1
shirioko Aug 6, 2014
0f5dee9
Fixed the "old-version" error message during registrations and "not-a…
Jan 9, 2015
9b62733
Fis in poll message after uploading file
Apr 3, 2015
f84cc34
Updated the constants.
Apr 29, 2015
3a88036
Changed fields named 'imei' to 'password'
mniak Apr 29, 2015
e4d3661
Merge pull request #1 from andregsilv/master
May 1, 2015
1e8fba2
Fixed issue #2
janpieterz May 7, 2015
c5af743
Fixed SendBroadcast adn added capabilities to retrieve and delete bro…
Jul 9, 2015
b4a6479
Merge branch 'master' of https://github.com/hacktique/WhatsAPINet.git
Jul 9, 2015
27c897f
Broadcasting fix: participant added as part of the delivery events.
Jul 13, 2015
a4d2ff8
Fix: Unauthorized for each login.
Jul 20, 2015
30b9574
Updated the WhatsAppConstants
Aug 24, 2015
628a178
Updated the contestants and added a separate event for the read statu…
Nov 3, 2015
7be17e4
Fixed the unauthorized after login
Nov 6, 2015
d1a8afb
Updated to the newest version
Dec 7, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 20 additions & 47 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,49 +1,22 @@
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
# Auto detect text files and perform LF normalization
* text=auto

*.jpg binary
*.png binary
*.gif binary
# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union

*.cs text=auto diff=csharp
*.vb text=auto
*.c text=auto
*.cpp text=auto
*.cxx text=auto
*.h text=auto
*.hxx text=auto
*.py text=auto
*.rb text=auto
*.java text=auto
*.html text=auto
*.htm text=auto
*.css text=auto
*.scss text=auto
*.sass text=auto
*.less text=auto
*.js text=auto
*.lisp text=auto
*.clj text=auto
*.sql text=auto
*.php text=auto
*.lua text=auto
*.m text=auto
*.asm text=auto
*.erl text=auto
*.fs text=auto
*.fsx text=auto
*.hs text=auto

*.csproj text=auto merge=union
*.vbproj text=auto merge=union
*.fsproj text=auto merge=union
*.dbproj text=auto merge=union
*.sln text=auto eol=crlf merge=union
# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
21 changes: 11 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@

#################
## Eclipse
#################

*.pydevproject
.project
.metadata
bin/**
tmp/**
tmp/**/*
bin/
obj/
tmp/
*.tmp
*.bak
*.swp
*~.nib
*.pdb
*.cache
local.properties
.classpath
.settings/
Expand Down Expand Up @@ -44,8 +45,8 @@ local.properties
*.sln.docstates

# Build results
**/[Dd]ebug/
**/[Rr]elease/
[Dd]ebug/
[Rr]elease/
*_i.c
*_p.c
*.ilk
Expand All @@ -63,10 +64,10 @@ local.properties
*.tmp
*.vspscc
.builds
**/*.dotCover
*.dotCover

## TODO: If you have NuGet Package Restore enabled, uncomment this
#**/packages/
#packages/

# Visual C++ cache files
ipch/
Expand All @@ -82,7 +83,7 @@ ipch/
# ReSharper is a .NET coding add-in
_ReSharper*

# Installshield output folder
# Installshield output folder
[Ee]xpress

# DocProject is a documentation generator add-in
Expand Down Expand Up @@ -123,7 +124,7 @@ UpgradeLog*.XML
############

# Windows image file caches
Thumbs.db
Thumbs.db

# Folder config file
Desktop.ini
Expand Down
Empty file removed CHANGELOG.md
Empty file.
Empty file removed CONTRIBUTING.md
Empty file.
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
WhatsAPINet
===========

This is a API written in C# but it can be used in any .NET language. It's a fork from WhatsAPINet, which is based on WhatsAPI.
The goal of this fork is to make it all work again and refacter the code, add documentation and write documentation
on how Whatsapp works.

## Documentation
* FunXMPP Protocol - https://github.com/TheKirk/WhatsAPINet/wiki/FunXMPP

## Protocol
The WhatsApp protocol is sadly not officially documented. While working on this
project, I will try to document most of my progress in the docs folder.

The protocol is based on the XML-based XMPP protocol, a heavily documented
internet messaging protocol. To reduce the XML overhead, the XML structure and a
lot of common keywords are converted into bytes. See docs/funxmpp.txt for a
more detailed explanation. Sadly, the XMPP standard is not followed exactly
everywhere.

* Protocol wrapper: FunXMPP (see Wiki)
* Main protocol: XMPP (http://xmpp.org/rfcs/rfc6120.html)
* Authentification: SASL, digest auth (http://tools.ietf.org/html/rfc2831)
* Blocking: XMPP privacy lists? (http://xmpp.org/extensions/xep-0016.html)
* Ping (http://xmpp.org/extensions/xep-0199.html)

### Encryption

Following the news that WhatsApp messages were sent in plaintext (and thus
readable for everyone when on a WiFi hotspot), encryption was added. At least
the Android client uses this encryption, which seems to be TLS as specified by
the XMPP RFC. However, I did not really look into this. Also, the mapping of
keywords to bytes seems to have also changed in the latest version of the
Android app.


### Code request token
The current implementation for token generation is created by [pastoso](https://github.com/pastoso).
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public WhatsUser(string jid, string srvUrl, string nickname = "")

public string GetFullJid()
{
return string.Format("{0}@{1}", this.Jid, this.serverUrl);
return WhatsAppApi.WhatsApp.GetJID(this.Jid);
}

internal void SetServerUrl(string srvUrl)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ public WhatsUser CreateUser(string jid, string nickname = "")
if (this.userList.ContainsKey(jid))
return this.userList[jid];

var tmpUser = new WhatsUser(jid, WhatsConstants.WhatsAppServer, nickname);
string server = WhatsConstants.WhatsAppServer;
if (jid.Contains("-"))
server = WhatsConstants.WhatsGroupChat;

var tmpUser = new WhatsUser(jid, server, nickname);
this.userList.Add(jid, tmpUser);
return tmpUser;
}
Expand Down
Loading