示例#1
0
 public static int SendCommand(this IEpos2SimpleSerial This, NSData data)
 {
     if (data == null)
     {
         throw new ArgumentNullException("data");
     }
     return(global::ApiDefinition.Messaging.int_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("sendCommand:"), data.Handle));
 }
示例#2
0
 public static void SetConnectionEventDelegate(this IEpos2SimpleSerial This, Epos2ConnectionDelegate @delegate)
 {
     if (@delegate == null)
     {
         throw new ArgumentNullException("@delegate");
     }
     global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("setConnectionEventDelegate:"), @delegate.Handle);
 }
示例#3
0
        public static int Connect(this IEpos2SimpleSerial This, string target, global::System.nint timeout)
        {
            if (target == null)
            {
                throw new ArgumentNullException("target");
            }
            var nstarget = NSString.CreateNative(target);

            int ret;

            ret = global::ApiDefinition.Messaging.int_objc_msgSend_IntPtr_nint(This.Handle, Selector.GetHandle("connect:timeout:"), nstarget, timeout);
            NSString.ReleaseNative(nstarget);

            return(ret);
        }
示例#4
0
 public static void Dealloc(this IEpos2SimpleSerial This)
 {
     global::ApiDefinition.Messaging.void_objc_msgSend(This.Handle, Selector.GetHandle("dealloc"));
 }
示例#5
0
 public static string GetLocation(this IEpos2SimpleSerial This)
 {
     return(NSString.FromHandle(global::ApiDefinition.Messaging.IntPtr_objc_msgSend(This.Handle, Selector.GetHandle("getLocation"))));
 }
示例#6
0
 public static Epos2SimpleSerialStatusInfo GetStatus(this IEpos2SimpleSerial This)
 {
     return(Runtime.GetNSObject <Epos2SimpleSerialStatusInfo> (global::ApiDefinition.Messaging.IntPtr_objc_msgSend(This.Handle, Selector.GetHandle("getStatus"))));
 }
示例#7
0
 public static int GetDisconnect(this IEpos2SimpleSerial This)
 {
     return(global::ApiDefinition.Messaging.int_objc_msgSend(This.Handle, Selector.GetHandle("disconnect")));
 }