public static int SendMessage(this IEpos2CommBox This, string message, string targetId, Epos2CommBoxSendMessageDelegate @delegate) { if (message == null) { throw new ArgumentNullException("message"); } if (targetId == null) { throw new ArgumentNullException("targetId"); } if (@delegate == null) { throw new ArgumentNullException("@delegate"); } var nsmessage = NSString.CreateNative(message); var nstargetId = NSString.CreateNative(targetId); int ret; ret = global::ApiDefinition.Messaging.int_objc_msgSend_IntPtr_IntPtr_IntPtr(This.Handle, Selector.GetHandle("sendMessage:targetId:delegate:"), nsmessage, nstargetId, @delegate.Handle); NSString.ReleaseNative(nsmessage); NSString.ReleaseNative(nstargetId); return(ret); }
public static void SetConnectionEventDelegate(this IEpos2CommBox This, Epos2ConnectionDelegate @delegate) { if (@delegate == null) { throw new ArgumentNullException("@delegate"); } global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("setConnectionEventDelegate:"), @delegate.Handle); }
public static int GetCommHistory(this IEpos2CommBox This, Epos2GetCommHistoryDelegate @delegate) { if (@delegate == null) { throw new ArgumentNullException("@delegate"); } return(global::ApiDefinition.Messaging.int_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("getCommHistory:"), @delegate.Handle)); }
public static int Connect(this IEpos2CommBox This, string target, global::System.nint timeout, string myId) { if (target == null) { throw new ArgumentNullException("target"); } if (myId == null) { throw new ArgumentNullException("myId"); } var nstarget = NSString.CreateNative(target); var nsmyId = NSString.CreateNative(myId); int ret; ret = global::ApiDefinition.Messaging.int_objc_msgSend_IntPtr_nint_IntPtr(This.Handle, Selector.GetHandle("connect:timeout:myId:"), nstarget, timeout, nsmyId); NSString.ReleaseNative(nstarget); NSString.ReleaseNative(nsmyId); return(ret); }
public static void Dealloc(this IEpos2CommBox This) { global::ApiDefinition.Messaging.void_objc_msgSend(This.Handle, Selector.GetHandle("dealloc")); }
public static string GetLocation(this IEpos2CommBox This) { return(NSString.FromHandle(global::ApiDefinition.Messaging.IntPtr_objc_msgSend(This.Handle, Selector.GetHandle("getLocation")))); }
public static Epos2CommBoxStatusInfo GetStatus(this IEpos2CommBox This) { return(Runtime.GetNSObject <Epos2CommBoxStatusInfo> (global::ApiDefinition.Messaging.IntPtr_objc_msgSend(This.Handle, Selector.GetHandle("getStatus")))); }
public static int GetDisconnect(this IEpos2CommBox This) { return(global::ApiDefinition.Messaging.int_objc_msgSend(This.Handle, Selector.GetHandle("disconnect"))); }