Esempio n. 1
0
 private static extern void _addUserIdentity(string serializedIdentityInfo,
                                             IntPtr onCompletePtr,
                                             IntPtr onFailurePtr,
                                             IntPtr onConflictPtr,
                                             OnAddUserIdentityCompleteProxy.OnAddUserIdentityCompleteDelegate onAddUserIdentityComplete,
                                             FailureCallbackDelegate failureCallback,
                                             OnAddUserIdentityConflictProxy.OnAddUserIdentityConflictDelegate onConflict);
 internal LogUploader(string url, Guid id, string logType, int idleThreshold, int uploadDelay,
                      RetrieveContentDelegate retrieveContent, SuccessCallbackDelegate successCallback, FailureCallbackDelegate failureCallback)
 {
     if (retrieveContent == null)
     {
         throw new ArgumentNullException("retrieveContent");
     }
     _url             = CreateReportUrl(url, id, logType);
     _idleThreshold   = idleThreshold;
     _uploadPeriod    = uploadDelay;
     _retrieveContent = retrieveContent;
     _successCallback = successCallback;
     _failureCallback = failureCallback;
     _lock            = new object();
     _lastRequest     = _lastSent = DateTime.MinValue;
     _timer           = new System.Threading.Timer(Callback, null, cPollingPeriod, cPollingPeriod);
 }
Esempio n. 3
0
 static extern void _gs_reportActivity(string id, int reportingReason,
                                       VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                       FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 4
0
 static extern void _gs_likeActivity(string id, bool isLiked,
                                     StringCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                     FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 5
0
 static extern void _gs_postActivityToFeed(string feed, string activity,
                                           StringCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                           FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 6
0
 static extern void _gs_getActivitiesWithQuery(string query,
                                               StringCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                               FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 7
0
 static extern void _gs_getFriendsReferences(
     StringCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
     FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 8
0
 static extern void _gs_getFriendsCount(IntCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                        FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 9
0
 static extern void _gs_setPublicProperty(string key, string value, VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                          FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 10
0
 static extern void _gs_setUserAvatar(string avatarBase64, VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                      FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 11
0
 static extern void _gs_setUserDisplayName(string displayName, VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                           FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 12
0
 static extern void _gs_resetUser(VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 13
0
 static extern void _gs_isPushNotificationsEnabled(
     BoolCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
     FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 14
0
 static extern void _gs_setPushNotificationsEnabled(bool read,
                                                    VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                                    FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 15
0
 static extern void _gs_setNotificationsRead(string ids, bool read,
                                             VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                             FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 16
0
 static extern void _gs_setFriendsByAuthIdentities(string providerId, string providerUserIdsJson,
                                                   VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                                   FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 17
0
 static extern void _gs_isFriend(string userId,
                                 BoolCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                 FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 18
0
 static extern void _gs_removePrivateProperty(string key, VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                              FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 19
0
 static extern void _gs_getSuggestedFriends(int offset, int limit,
                                            StringCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                            FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 20
0
 static extern void _gs_addAuthIdentity(string identity,
                                        VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                        FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr,
                                        OnUserConflictDelegate conflictCallBack, IntPtr onConflictActionPtr);
Esempio n. 21
0
 static extern void _gs_getAnnouncements(string feed,
                                         StringCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                         FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 22
0
 static extern void _gs_switchUser(string identity,
                                   VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                   FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 23
0
 static extern void _gs_getActivityById(string id,
                                        StringCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                        FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 24
0
 static extern void _gs_removeAuthIdentity(string providerId,
                                           VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                           FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 25
0
 static extern void _gs_postCommentToActivity(string id, string comment,
                                              StringCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                              FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 26
0
 static extern void _gs_getUserByAuthIdentity(string providerId, string providerUserId,
                                              StringCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                              FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 27
0
 static extern void _gs_getActivityLikers(string id, int offset, int limit,
                                          StringCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                          FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 28
0
 static extern void _gs_findUsers(string query,
                                  StringCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                  FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 29
0
 static extern void _gs_deleteActivity(string id,
                                       VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                       FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
Esempio n. 30
0
 static extern void _gs_setFriends(string userIdsJson,
                                   VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr,
                                   FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);