Exemplo n.º 1
0
        internal void RejectFriendRequest(int friendRequestId, UnityAction <WebRequestResponse> response)
        {
            RequestContent requestContent = new RequestContent(RequestType.Post, Endpoint.FriendRequestsId + friendRequestId + Endpoint.FriendRequestsReject);

            requester.SendRequest(this, requestContent, response);
        }
Exemplo n.º 2
0
        internal void DeleteFriend(int friendId, UnityAction <WebRequestResponse> response)
        {
            RequestContent requestContent = new RequestContent(RequestType.Delete, Endpoint.FriendsId + friendId);

            requester.SendRequest(this, requestContent, response);
        }
Exemplo n.º 3
0
 private string GetURL(RequestContent requestContent)
 {
     return(host + requestContent.Endpoint);
 }
Exemplo n.º 4
0
        internal void LoadUserData(UnityAction <WebRequestResponse> response = null)
        {
            RequestContent requestContent = new RequestContent(RequestType.Get, Endpoint.Users + "/" + requester.Authentication.Id);

            requester.SendRequest(this, requestContent, response);
        }
Exemplo n.º 5
0
 public void SendRequest(MonoBehaviour coroutineOwner, RequestContent requestContent, UnityAction <WebRequestResponse> response)
 {
     coroutineOwner.StartCoroutine(Request(requestContent, response));
 }