TReKiE / msnp-sharp

Automatically exported from code.google.com/p/msnp-sharp
0 stars 0 forks source link

Retrieving Contact to Recieved Circle Message #153

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hey there,

Though not necessarily a bug, I am guessing this could be a idea to 
improving Group support a little. While using the event 
"CircleTextMessageReceived", I cannot find a property as such when I use it 
to find out how had sent this message otherwise. With a few attempts, I 
think I found a way to get a property to retrieve the contact who sent this 
message in that event.

I am currently using the MSNP-Sharp 3.0 Stable branch. With the two files 
attached, I have edited them a little create a property called 
"SenderContact" to get the contact who had sent this circle message. For 
the EventArgs, refer to the "CircleTextMessageEventArgs" class, while for 
the NSMessageHandler refer to line 2714. Hopefully this helps otherwise.

Andy Phan.

Original issue reported on code.google.com by electk...@gmail.com on 24 Oct 2009 at 3:10

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi Andy,
Thanks for you advice. The library already have such an event. Please refer to 
NSMessageHandler.CircleTypingMessageReceived and 
NSMessageHandler.CircleNudgeReceived.

I will improve these events as your suggestion. By the way, if you submit an 
improvement to us next time, please generate a patch file using svn because 
it's 
really hard to see what you've changed by checking cs files.

Original comment by freezing...@gmail.com on 24 Oct 2009 at 8:21

GoogleCodeExporter commented 9 years ago
Hi Andy,
I've improved the design, please check out the latest code.

Original comment by freezing...@gmail.com on 24 Oct 2009 at 8:38

GoogleCodeExporter commented 9 years ago
How do you do a patch file using the svn? Currently I have TortoiseSVN. Thanks.

Original comment by electk...@gmail.com on 24 Oct 2009 at 11:40

GoogleCodeExporter commented 9 years ago
Hi Andy,
Please refer to the help file of TortoiseSVN.

http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-patch.html

Original comment by freezing...@gmail.com on 24 Oct 2009 at 11:46

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by freezing...@gmail.com on 25 Oct 2009 at 6:23

GoogleCodeExporter commented 9 years ago

Original comment by hepha...@gmail.com on 30 Oct 2009 at 4:56

GoogleCodeExporter commented 9 years ago

Original comment by hepha...@gmail.com on 30 Oct 2009 at 5:07