public static void UrgentRequestDidFinish(this ILPAMSFacadeDelegate This, LPConversationEntity conversation)
 {
     if (conversation == null)
     {
         throw new ArgumentNullException("conversation");
     }
     global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("urgentRequestDidFinish:"), conversation.Handle);
 }
Exemple #2
0
 public static LPConversationEntity CreateNewConversation(this LPConversationEntity This, LPBrandEntity brand)
 {
     if (brand == null)
     {
         throw new ArgumentNullException("brand");
     }
     return(Runtime.GetNSObject <LPConversationEntity> (global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr(class_ptr, Selector.GetHandle("createNewConversation:"), brand.Handle)));
 }
 public static void ConversationDidResolve(this ILPAMSFacadeDelegate This, LPConversationEntity conversation, bool isAgentSide, NSDate endTime)
 {
     if (conversation == null)
     {
         throw new ArgumentNullException("conversation");
     }
     global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr_bool_IntPtr(This.Handle, Selector.GetHandle("conversationDidResolve:isAgentSide:endTime:"), conversation.Handle, isAgentSide, endTime == null ? IntPtr.Zero : endTime.Handle);
 }
Exemple #4
0
 public static string GetResolveDateString(this LPConversationEntity This, NSDate date)
 {
     if (date == null)
     {
         throw new ArgumentNullException("date");
     }
     return(NSString.FromHandle(global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("getResolveDateString:"), date.Handle)));
 }
Exemple #5
0
 public bool IsConversationRelatedToQuery(LPConversationEntity conversation)
 {
     if (conversation == null)
     {
         throw new ArgumentNullException("conversation");
     }
     return(global::ApiDefinition.Messaging.bool_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("isConversationRelatedToQuery:"), conversation.Handle));
 }
Exemple #6
0
        public static void Resolve(this LPConversationEntity This, string closeReason)
        {
            if (closeReason == null)
            {
                throw new ArgumentNullException("closeReason");
            }
            var nscloseReason = NSString.CreateNative(closeReason);

            global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("resolve:"), nscloseReason);
            NSString.ReleaseNative(nscloseReason);
        }
 public static void ResolveConvesationDidFail(this ILPAMSFacadeDelegate This, LPConversationEntity conversation, NSError error)
 {
     if (conversation == null)
     {
         throw new ArgumentNullException("conversation");
     }
     if (error == null)
     {
         throw new ArgumentNullException("error");
     }
     global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr(This.Handle, Selector.GetHandle("resolveConvesationDidFail:error:"), conversation.Handle, error.Handle);
 }
 public static void DidReceiveTTRUpdate(this ILPAMSFacadeDelegate This, LPConversationEntity conversation, TTRModel ttr)
 {
     if (conversation == null)
     {
         throw new ArgumentNullException("conversation");
     }
     if (ttr == null)
     {
         throw new ArgumentNullException("ttr");
     }
     global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr(This.Handle, Selector.GetHandle("didReceiveTTRUpdate:ttr:"), conversation.Handle, ttr.Handle);
 }
        public static void MessagesStatusDidChange(this ILPAMSFacadeDelegate This, LPConversationEntity conversation, LPMessageEntity[] messages)
        {
            if (conversation == null)
            {
                throw new ArgumentNullException("conversation");
            }
            if (messages == null)
            {
                throw new ArgumentNullException("messages");
            }
            var nsa_messages = NSArray.FromNSObjects(messages);

            global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr(This.Handle, Selector.GetHandle("messagesStatusDidChange:messages:"), conversation.Handle, nsa_messages.Handle);
            nsa_messages.Dispose();
        }
 public virtual bool IsConversationRelatedToQuery(LPConversationEntity conversation)
 {
     if (conversation == null)
     {
         throw new ArgumentNullException("conversation");
     }
     if (IsDirectBinding)
     {
         return(global::ApiDefinition.Messaging.bool_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("isConversationRelatedToQuery:"), conversation.Handle));
     }
     else
     {
         return(global::ApiDefinition.Messaging.bool_objc_msgSendSuper_IntPtr(this.SuperHandle, Selector.GetHandle("isConversationRelatedToQuery:"), conversation.Handle));
     }
 }
        public static void DidUpdateUserProfile(this ILPAMSFacadeDelegate This, LPConversationEntity conversation, string userID)
        {
            if (conversation == null)
            {
                throw new ArgumentNullException("conversation");
            }
            if (userID == null)
            {
                throw new ArgumentNullException("userID");
            }
            var nsuserID = NSString.CreateNative(userID);

            global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr(This.Handle, Selector.GetHandle("didUpdateUserProfile:userID:"), conversation.Handle, nsuserID);
            NSString.ReleaseNative(nsuserID);
        }
Exemple #12
0
 public static void Resolve(this LPConversationEntity This)
 {
     global::ApiDefinition.Messaging.void_objc_msgSend(This.Handle, Selector.GetHandle("resolve"));
 }
Exemple #13
0
 public static LPMessageEntity[] GetMessagesPage(this LPConversationEntity This, nint from, nint pageSize)
 {
     return(NSArray.ArrayFromHandle <LPMessageEntity>(global::ApiDefinition.Messaging.IntPtr_objc_msgSend_nint_nint(This.Handle, Selector.GetHandle("getMessagesPage:pageSize:"), from, pageSize)));
 }
Exemple #14
0
 public static void AcceptSequence(this LPConversationEntity This, nint seq)
 {
     global::ApiDefinition.Messaging.void_objc_msgSend_nint(This.Handle, Selector.GetHandle("acceptSequence:"), seq);
 }
Exemple #15
0
 public static void UpdateTTRModelWithReset(this LPConversationEntity This, bool reset)
 {
     global::ApiDefinition.Messaging.void_objc_msgSend_bool(This.Handle, Selector.GetHandle("updateTTRModelWithReset:"), reset);
 }
 public static void ConversationWasSentToQueueRemotely(this ILPAMSFacadeDelegate This, LPConversationEntity conversation)
 {
     if (conversation == null)
     {
         throw new ArgumentNullException("conversation");
     }
     global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("conversationWasSentToQueueRemotely:"), conversation.Handle);
 }
 public static void CsatScoreSubmissionDidFinish(this ILPAMSFacadeDelegate This, LPConversationEntity conversation, CSATModel csat)
 {
     if (conversation == null)
     {
         throw new ArgumentNullException("conversation");
     }
     if (csat == null)
     {
         throw new ArgumentNullException("csat");
     }
     global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr(This.Handle, Selector.GetHandle("csatScoreSubmissionDidFinish:csat:"), conversation.Handle, csat.Handle);
 }
 public static void DidAcceptRingWithConversation(this ILPAMSFacadeDelegate This, LPConversationEntity conversation, LPConnection connection)
 {
     if (conversation == null)
     {
         throw new ArgumentNullException("conversation");
     }
     if (connection == null)
     {
         throw new ArgumentNullException("connection");
     }
     global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr(This.Handle, Selector.GetHandle("didAcceptRingWithConversation:connection:"), conversation.Handle, connection.Handle);
 }