コード例 #1
0
 public void SetRequestState <U> (
     string[] channels,
     Action <T> connectCallback,
     Action <PubnubClientError> errorCallback,
     bool reconnect,
     PubnubWebRequest request,
     PubnubWebResponse response,
     bool timeout,
     long timetoken,
     Type typeParameterType,
     Action <T> userCallback,
     long id
     )
 {
     Channels          = channels;
     ConnectCallback   = connectCallback as Action <T>;
     ErrorCallback     = errorCallback;
     Reconnect         = reconnect;
     Request           = request;
     Response          = response;
     Timeout           = timeout;
     Timetoken         = timetoken;
     TypeParameterType = typeParameterType;
     UserCallback      = userCallback as Action <T>;
     ID = id;
 }
コード例 #2
0
 public PubnubClientError(int statusCode, PubnubErrorSeverity errorSeverity, bool isDotNetException, string message,
                          Exception detailedDotNetException, PubnubMessageSource source, PubnubWebRequest pubnubWebRequest,
                          PubnubWebResponse pubnubWebResponse, string description, List <ChannelEntity> channelEntitles)
     : this(statusCode, errorSeverity, isDotNetException, message, detailedDotNetException, source, pubnubWebRequest,
            pubnubWebResponse, description, Helpers.GetNamesFromChannelEntities(channelEntitles, false),
            Helpers.GetNamesFromChannelEntities(channelEntitles, true))
 {
 }
コード例 #3
0
 public RequestState()
 {
     SuccessCallback = null;
     Request         = null;
     Response        = null;
     ChannelEntities = null;
     ID = 0;
 }
コード例 #4
0
 public RequestState()
 {
     UserCallback    = null;
     ConnectCallback = null;
     Request         = null;
     Response        = null;
     Channels        = null;
     ID = 0;
 }
コード例 #5
0
ファイル: LoggingMethod.cs プロジェクト: laiqiqi/unity
 public PubnubClientError(int statusCode, PubnubErrorSeverity errorSeverity, string message, PubnubMessageSource source, PubnubWebRequest pubnubWebRequest, PubnubWebResponse pubnubWebResponse, string description, string channel)
 {
     _dateTimeGMT             = DateTime.Now.ToUniversalTime();
     _statusCode              = statusCode;
     _isDotNetException       = false;
     _message                 = message;
     _errorSeverity           = errorSeverity;
     _messageSource           = source;
     _channel                 = channel;
     _detailedDotNetException = null;
     _pubnubWebRequest        = pubnubWebRequest;
     _pubnubWebResponse       = pubnubWebResponse;
     _description             = description;
 }
コード例 #6
0
 public RequestState(RequestState <T> requestState)
 {
     ErrorCallback     = requestState.ErrorCallback;
     ChannelEntities   = requestState.ChannelEntities;
     Reconnect         = requestState.Reconnect;
     Request           = requestState.Request;
     Response          = requestState.Response;
     Timeout           = requestState.Timeout;
     Timetoken         = requestState.Timetoken;
     TypeParameterType = requestState.TypeParameterType;
     SuccessCallback   = requestState.SuccessCallback as Action <T>;
     ID       = requestState.ID;
     RespType = requestState.RespType;
 }
コード例 #7
0
 public RequestState(RequestState <T> requestState)
 {
     Channels = requestState.Channels;
     #if (ENABLE_PUBNUB_LOGGING)
     LoggingMethod.WriteToLog(string.Format("DateTime {0}, Channels {1}", DateTime.Now.ToString(), Channels.ToString()), LoggingMethod.LevelInfo);
     #endif
     ConnectCallback   = requestState.ConnectCallback as Action <T>;
     ErrorCallback     = requestState.ErrorCallback;
     Reconnect         = requestState.Reconnect;
     Request           = requestState.Request;
     Response          = requestState.Response;
     Timeout           = requestState.Timeout;
     Timetoken         = requestState.Timetoken;
     TypeParameterType = requestState.TypeParameterType;
     UserCallback      = requestState.UserCallback as Action <T>;
     ID       = requestState.ID;
     RespType = requestState.RespType;
 }
コード例 #8
0
 public PubnubClientError(int statusCode, PubnubErrorSeverity errorSeverity, string message,
                          PubnubMessageSource source, PubnubWebRequest pubnubWebRequest, PubnubWebResponse pubnubWebResponse, string description,
                          string channels, string channelGroups)
     : this(statusCode, errorSeverity, false, message, null, source, pubnubWebRequest, pubnubWebResponse, description
            , channels, channelGroups)
 {
 }