CotC C# SDK for Unity  v1.4.0.1
Making social games is easy !
Properties | Public Member Functions | Public Attributes | List of all members
CotcSdk.HttpRequestFailedEventArgs Class Reference

Description

This class is passed to the HttpRequestFailed handler as set on the Cloud. You need to do something with it, either call Abort or RetryIn else the http service will throw an exception.

Properties

string Url [get]
 The original URL that the request failed to reach. More...
 

Public Member Functions

void Abort ()
 Call this to abort the request. It won't be tried ever again. More...
 
void RetryIn (int milliseconds)
 Call this to retry the request later. More...
 

Public Attributes

object UserData
 You can set this member from the handler; in case the request fails again, this data will be set to the same value as set last time. It is always set to null when the request fails for the first time. More...
 

Property Documentation

◆ Url

string CotcSdk.HttpRequestFailedEventArgs.Url
get

The original URL that the request failed to reach.

Member Function Documentation

◆ Abort()

void CotcSdk.HttpRequestFailedEventArgs.Abort ( )

Call this to abort the request. It won't be tried ever again.

◆ RetryIn()

void CotcSdk.HttpRequestFailedEventArgs.RetryIn ( int  milliseconds)

Call this to retry the request later.

Parameters
millisecondsTime in which to try again. No other request will be executed during this time (they will be queued) as to respect the issuing order. Please keep this in mind when setting a high delay.

Member Data Documentation

◆ UserData

object CotcSdk.HttpRequestFailedEventArgs.UserData

You can set this member from the handler; in case the request fails again, this data will be set to the same value as set last time. It is always set to null when the request fails for the first time.