CotC C# SDK for Unity  v1.4.0.1
Making social games is easy !
Classes | Enumerations | Functions
Various classes for SDK usage

Classes

class  CotcSdk.EventLoopArgs
 Arguments of the EventLoopArgs.ReceivedEvent event. You can use args.Message.ToJson() to obtain more information. More...
 
class  CotcSdk.HttpRequestFailedEventArgs
 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. More...
 
class  CotcSdk.PushNotification
 Push notifications can be specified in some API calls to push an OS push notification to inactive users. It is typically a JSON with made of attributes which represent language -> message pairs. Here is an example: new PushNotification().Message("en", "Help me!").Message("fr", "Aidez moi!"). More...
 

Enumerations

enum  CotcSdk.ErrorCode {
  CotcSdk.ErrorCode.Ok = 0, NetworkError = 2000, ServerError = 2001, NotImplemented = 2002,
  LogicError = 2003, InternalError = 2004, Canceled = 2005, AlreadyInProgress = 2006,
  NotSetup = 2100, BadAppCredentials = 2101, NotLoggedIn = 2102, BadParameters = 2104,
  EventListenerAlreadyRegistered = 2105, AlreadySetup = 2106, SocialNetworkError = 2107, LoginCanceled = 2108,
  ErrorWithExternalStore = 2109, CotcSdk.ErrorCode.LastError
}
 Represents an error code as returned by a CotcException. More...
 

Functions

delegate void CotcSdk.EventLoopHandler (DomainEventLoop sender, EventLoopArgs e)
 Delegate called when receiving a message on a CotcSdk.DomainEventLoop. More...
 
delegate void CotcSdk.HttpRequestFailedHandler (HttpRequestFailedEventArgs e)
 Delegate for failed HTTP requests. See Cloud.HttpRequestFailedHandler. More...
 

Detailed Description

Enumeration Type Documentation

◆ ErrorCode

enum CotcSdk.ErrorCode
strong

Represents an error code as returned by a CotcException.

Enumerator
Ok 

No error.

LastError 

You shouldn't receive this error, it's just a convenient value.

Function Documentation

◆ EventLoopHandler()

delegate void CotcSdk.EventLoopHandler ( DomainEventLoop  sender,
EventLoopArgs  e 
)

Delegate called when receiving a message on a CotcSdk.DomainEventLoop.

Parameters
senderDomain loop that triggered the event.
eDescription of the received event.

◆ HttpRequestFailedHandler()

delegate void CotcSdk.HttpRequestFailedHandler ( HttpRequestFailedEventArgs  e)

Delegate for failed HTTP requests. See Cloud.HttpRequestFailedHandler.