kythyria / msnp-sharp

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

After PersonalMessage.SetListeningAlbum,can't set PersonalMessage again. #293

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.use SetMusic function in Example.
PersonalMessage pm = messenger.Owner.PersonalMessage;
            pm.SetListeningAlbum(Artist, Song, Album);
            messenger.Owner.PersonalMessage = pm;
2.set PersonalMessage again
PersonalMessage personalMessageToUpdate = messenger.Owner.PersonalMessage;
                personalMessageToUpdate.Message = personalStatusMessage;
                messenger.Owner.PersonalMessage = personalMessageToUpdate;

3.Media Type still "MUSIC"

What is the expected output? What do you see instead?
clear the Media Type to MediaType.NONE

What version of the product are you using? (MSNPSharp, OS, Mono etc.)
MSNPSHarp v4.0.2 r2512, Windows Vista
Is your code check out from SVN or download from our download site?
yes.

Please provide any additional information below:
no.

Original issue reported on code.google.com by kuanlin...@gmail.com on 16 Sep 2011 at 8:32

GoogleCodeExporter commented 9 years ago
I use below instead.
PersonalMessage pmOld = messenger.Owner.PersonalMessage;
                PersonalMessage pmNew = new PersonalMessage(personalStatusMessage, MediaType.None, null);
                pmNew.ColorScheme = pmOld.ColorScheme;
                pmNew.DDP = pmOld.DDP;
                pmNew.Format = pmOld.Format;
                pmNew.FriendlyName = pmOld.FriendlyName;
                pmNew.Scene = pmOld.Scene;
                pmNew.UserTileLocation = pmOld.UserTileLocation;

                messenger.Owner.PersonalMessage = pmNew;

and I think,need a function to set music off.

Original comment by kuanlin...@gmail.com on 16 Sep 2011 at 9:03

GoogleCodeExporter commented 9 years ago
Try r2545, fixed, I think.

Original comment by freezing...@gmail.com on 2 Oct 2011 at 3:35

GoogleCodeExporter commented 9 years ago

Original comment by hepha...@gmail.com on 10 Nov 2011 at 2:16