Example #1
0
        public void CreateInviteLink(LinkParams linkParams, Action <string> onSuccess, Action <GetSocialError> onFailure)
        {
            string linkParamsJson = null;

            if (linkParams != null)
            {
                linkParamsJson = linkParams.ToJson();
            }

            _gs_createInviteLink(linkParamsJson, Callbacks.StringCallback, onSuccess.GetPointer(),
                                 Callbacks.FailureCallback, onFailure.GetPointer());
        }
Example #2
0
        public void SendInvite(string channelId, InviteContent customInviteContent,
                               LinkParams linkParams,
                               Action onComplete, Action onCancel, Action <GetSocialError> onFailure)
        {
            string customInviteContentJson = null;

            if (customInviteContent != null)
            {
                customInviteContentJson = customInviteContent.ToJson();
            }
            string linkParamsJson = null;

            if (linkParams != null)
            {
                linkParamsJson = linkParams.ToJson();
            }
            _gs_sendInviteCustomAndLinkParams(channelId, customInviteContentJson, linkParamsJson,
                                              Callbacks.ActionCallback, onComplete.GetPointer(), onCancel.GetPointer(),
                                              Callbacks.FailureCallback, onFailure.GetPointer());
        }