Beispiel #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);
        }
Beispiel #2
0
        internal void DeleteFriend(int friendId, UnityAction <WebRequestResponse> response)
        {
            RequestContent requestContent = new RequestContent(RequestType.Delete, Endpoint.FriendsId + friendId);

            requester.SendRequest(this, requestContent, response);
        }
Beispiel #3
0
 private string GetURL(RequestContent requestContent)
 {
     return(host + requestContent.Endpoint);
 }
Beispiel #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);
        }
Beispiel #5
0
 public void SendRequest(MonoBehaviour coroutineOwner, RequestContent requestContent, UnityAction <WebRequestResponse> response)
 {
     coroutineOwner.StartCoroutine(Request(requestContent, response));
 }