kenakamu / UCWA2.0-CS

C# library for UCWA 2.0
MIT License
24 stars 13 forks source link

Activity spelled wrong #1

Closed dougroutledge closed 7 years ago

dougroutledge commented 7 years ago

In the Presence.cs file, the line [JsonProperty("activity")] is spelled wrong.

kenakamu commented 7 years ago

Thanks! fixed.

dougroutledge commented 7 years ago

Even when changing on my end, it still doesn’t seem to set the activity.

public class Presence : UCWAModelBaseLink

{

    [JsonProperty("activity")]

    public string Activity { get; set; }

    [JsonProperty("availability")]

    public Availability Availability { get; set; }

    public async Task Update()

    {

        await HttpService.Post(Self, this);

    }

}

I can trace and see it is sending this.

{

"activity": "In a Call",

"availability": "Busy",

"Self": "/ucwa/oauth/v1/applications/103782700393/me/presence",

"rel": "presence"

}

But when I query the presence, the activity portion is always null.

presence = (await Globlas.client.Me.GetPresencs());

The Availability seems to change properly.

From: Kenichiro Nakamura [mailto:notifications@github.com] Sent: Tuesday, February 7, 2017 8:35 PM To: kenakamu/UCWA2.0-CS UCWA2.0-CS@noreply.github.com Cc: Doug Routledge dougroutledge@gmail.com; Author author@noreply.github.com Subject: Re: [kenakamu/UCWA2.0-CS] Activity spelled wrong (#1)

Thanks! fixed.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kenakamu/UCWA2.0-CS/issues/1#issuecomment-278211880 , or mute the thread https://github.com/notifications/unsubscribe-auth/AO_Odz3TFbvyjl2wM6jCeSwI3Lr0YUDxks5raSnlgaJpZM4L6EYH . https://github.com/notifications/beacon/AO_Od_RrDNQM9o7nVgkWn46AFBlJPdh-ks5raSnlgaJpZM4L6EYH.gif

kenakamu commented 7 years ago

Interesting. Can you check if UCWA returns activity when run presence method?

dougroutledge commented 7 years ago

Yes I can read if I am in a meeting or on the phone, but I am not able to set. It could be that it is not supported. I see this link talks about well known tokens and custom tokens, and says custom tokens can’t be set. I don’t seem to be able to set the well know tokens either.

https://ucwa.skype.com/documentation/Dashboard-Me

kenakamu commented 7 years ago

You are right. It seems they are not (yet) supported setting it.