public MessengerTicket CreateSignedTicket(string consentToken, params string[] cids) { if (String.IsNullOrEmpty(consentToken)) { return(null); } ConsentToken consent = this.DecodeToken(consentToken); if (consent == null) { return(null); } ApplicationContactList list = new ApplicationContactList(); string ticket = list.CreateApplicationContactList( consent.CID, cids); string signature = list.SignApplicationContactList( ticket, consent.SessionKey); return(new MessengerTicket(ticket, signature)); }
public MessengerTicket CreateSignedTicket(string consentToken, params string[] cids) { if (String.IsNullOrEmpty(consentToken)) { return null; } ConsentToken consent = this.DecodeToken(consentToken); if (consent == null) { return null; } ApplicationContactList list = new ApplicationContactList(); string ticket = list.CreateApplicationContactList( consent.CID, cids); string signature = list.SignApplicationContactList( ticket, consent.SessionKey); return new MessengerTicket(ticket, signature); }