Ejemplo n.º 1
0
        private void Subscribe()
        {
            SubscribeToFriendsRequest subscribeToFriendsRequest = new SubscribeToFriendsRequest();

            subscribeToFriendsRequest.SetObjectId((ulong)0);
            SubscribeToFriendsRequest subscribeToFriendsRequest1 = subscribeToFriendsRequest;

            if (!subscribeToFriendsRequest1.IsInitialized)
            {
                base.ApiLog.LogWarning("Battle.net Friends API C#: Failed to Subscribe.");
                return;
            }
            this.m_rpcConnection.QueueRequest(this.m_friendsService.Id, 1, subscribeToFriendsRequest1, new RPCContextDelegate(this.SubscribeToFriendsCallback), 0);
        }
    private void Subscribe()
    {
        SubscribeToFriendsRequest request = new SubscribeToFriendsRequest();

        request.SetObjectId(0L);
        SubscribeToFriendsRequest message = request;

        if (!message.IsInitialized)
        {
            base.ApiLog.LogWarning("Battle.net Friends API C#: Failed to Subscribe.");
        }
        else
        {
            base.m_rpcConnection.QueueRequest(this.m_friendsService.Id, 1, message, new RPCContextDelegate(this.SubscribeToFriendsCallback), 0);
        }
    }