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); }
static extern void _gs_reportActivity(string id, int reportingReason, VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_likeActivity(string id, bool isLiked, StringCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_postActivityToFeed(string feed, string activity, StringCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_getActivitiesWithQuery(string query, StringCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_getFriendsReferences( StringCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_getFriendsCount(IntCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_setPublicProperty(string key, string value, VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_setUserAvatar(string avatarBase64, VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_setUserDisplayName(string displayName, VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_resetUser(VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_isPushNotificationsEnabled( BoolCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_setPushNotificationsEnabled(bool read, VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_setNotificationsRead(string ids, bool read, VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_setFriendsByAuthIdentities(string providerId, string providerUserIdsJson, VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_isFriend(string userId, BoolCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_removePrivateProperty(string key, VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_getSuggestedFriends(int offset, int limit, StringCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_addAuthIdentity(string identity, VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr, OnUserConflictDelegate conflictCallBack, IntPtr onConflictActionPtr);
static extern void _gs_getAnnouncements(string feed, StringCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_switchUser(string identity, VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_getActivityById(string id, StringCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_removeAuthIdentity(string providerId, VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_postCommentToActivity(string id, string comment, StringCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_getUserByAuthIdentity(string providerId, string providerUserId, StringCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_getActivityLikers(string id, int offset, int limit, StringCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_findUsers(string query, StringCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_deleteActivity(string id, VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);
static extern void _gs_setFriends(string userIdsJson, VoidCallbackDelegate successCallback, IntPtr onSuccessActionPtr, FailureCallbackDelegate failureCallback, IntPtr onFailureActionPtr);