Skip to content

Mirror::Cloud::IRequestCreator

Methods to create and send UnityWebRequest

Inherited by RequestCreator

Public Functions

Name
UnityWebRequest Delete(string page)
UnityWebRequest Get(string page)
UnityWebRequest Patch< T >(string page, T json)
UnityWebRequest Post< T >(string page, T json)
void SendRequest(UnityWebRequest request, RequestSuccess onSuccess =null, RequestFail onFail =null)
Sends Request to api and invokes callback when finished
IEnumerator SendRequestEnumerator(UnityWebRequest request, RequestSuccess onSuccess =null, RequestFail onFail =null)
Sends Request to api and invokes callback when finished

Public Functions Documentation

function Delete

UnityWebRequest Delete(
    string page
)

Reimplemented by: Mirror::Cloud::RequestCreator::Delete

function Get

UnityWebRequest Get(
    string page
)

Reimplemented by: Mirror::Cloud::RequestCreator::Get

function Patch< T >

UnityWebRequest Patch< T >(
    string page,
    T json
)

Reimplemented by: Mirror::Cloud::RequestCreator::Patch< T >

function Post< T >

UnityWebRequest Post< T >(
    string page,
    T json
)

Reimplemented by: Mirror::Cloud::RequestCreator::Post< T >

function SendRequest

void SendRequest(
    UnityWebRequest request,
    RequestSuccess onSuccess =null,
    RequestFail onFail =null
)

Sends Request to api and invokes callback when finished

Parameters:

  • request
  • onSuccess
  • onFail

Reimplemented by: Mirror::Cloud::RequestCreator::SendRequest

Starts Coroutine of SendRequestEnumerator

function SendRequestEnumerator

IEnumerator SendRequestEnumerator(
    UnityWebRequest request,
    RequestSuccess onSuccess =null,
    RequestFail onFail =null
)

Sends Request to api and invokes callback when finished

Parameters:

  • request
  • onSuccess
  • onFail

Return:

Reimplemented by: Mirror::Cloud::RequestCreator::SendRequestEnumerator


Updated on 26 January 2021 at 13:37:22 UTC