Exemple #1
0
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            AcceptInvitationResponse response = new AcceptInvitationResponse();


            return(response);
        }
        public static AcceptInvitationResponse Unmarshall(UnmarshallerContext context)
        {
            AcceptInvitationResponse acceptInvitationResponse = new AcceptInvitationResponse();

            acceptInvitationResponse.HttpResponse = context.HttpResponse;
            acceptInvitationResponse.RequestId    = context.StringValue("AcceptInvitation.RequestId");
            acceptInvitationResponse.Success      = context.BooleanValue("AcceptInvitation.Success");
            acceptInvitationResponse.ErrorCode    = context.IntegerValue("AcceptInvitation.ErrorCode");

            return(acceptInvitationResponse);
        }
Exemple #3
0
            public void AcceptInvitationCallback(RPCContext context, RPCContextDelegate callback)
            {
                BattleNetErrors status = (BattleNetErrors)context.Header.Status;

                if (status != BattleNetErrors.ERROR_OK)
                {
                    this.m_channelAPI.ApiLog.LogError("AcceptInvitationCallback: " + status.ToString());
                    return;
                }
                AcceptInvitationResponse acceptInvitationResponse = AcceptInvitationResponse.ParseFrom(context.Payload);

                base.SetObjectId(acceptInvitationResponse.ObjectId);
                this.m_channelAPI.AddActiveChannel(this.m_subscriberObjectId, new ChannelAPI.ChannelReferenceObject(this));
                this.m_channelAPI.ApiLog.LogDebug("AcceptInvitationCallback, status=" + status.ToString());
                if (callback != null)
                {
                    callback(context);
                }
            }