internal void RejectFriendRequest(int friendRequestId, UnityAction <WebRequestResponse> response) { RequestContent requestContent = new RequestContent(RequestType.Post, Endpoint.FriendRequestsId + friendRequestId + Endpoint.FriendRequestsReject); requester.SendRequest(this, requestContent, response); }
internal void DeleteFriend(int friendId, UnityAction <WebRequestResponse> response) { RequestContent requestContent = new RequestContent(RequestType.Delete, Endpoint.FriendsId + friendId); requester.SendRequest(this, requestContent, response); }
private string GetURL(RequestContent requestContent) { return(host + requestContent.Endpoint); }
internal void LoadUserData(UnityAction <WebRequestResponse> response = null) { RequestContent requestContent = new RequestContent(RequestType.Get, Endpoint.Users + "/" + requester.Authentication.Id); requester.SendRequest(this, requestContent, response); }
public void SendRequest(MonoBehaviour coroutineOwner, RequestContent requestContent, UnityAction <WebRequestResponse> response) { coroutineOwner.StartCoroutine(Request(requestContent, response)); }