コード例 #1
0
        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));
        }
コード例 #2
0
        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);
        }