public unsafe virtual NSUrlSessionTask GenerateAccountForCard(CCCCardInfo card, [BlockProxy(typeof(ObjCRuntime.Trampolines.NIDActionArity2V0))] global::System.Action <CCCAccount, NSError> completion)
        {
            if (card == null)
            {
                throw new ArgumentNullException("card");
            }
            if (completion == null)
            {
                throw new ArgumentNullException("completion");
            }
            BlockLiteral *block_ptr_completion;
            BlockLiteral  block_completion;

            block_completion     = new BlockLiteral();
            block_ptr_completion = &block_completion;
            block_completion.SetupBlockUnsafe(Trampolines.SDActionArity2V0.Handler, completion);

            NSUrlSessionTask ret;

            if (IsDirectBinding)
            {
                ret = Runtime.GetNSObject <NSUrlSessionTask> (global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(this.Handle, Selector.GetHandle("generateAccountForCard:completion:"), card.Handle, (IntPtr)block_ptr_completion));
            }
            else
            {
                ret = Runtime.GetNSObject <NSUrlSessionTask> (global::ApiDefinition.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(this.SuperHandle, Selector.GetHandle("generateAccountForCard:completion:"), card.Handle, (IntPtr)block_ptr_completion));
            }
            block_ptr_completion->CleanupBlock();

            return(ret);
        }
 public static void SetCVVOnCardInfo(this ICCCCVVFormatterDelegate This, CCCCardInfo cardInfo)
 {
     if (cardInfo == null)
     {
         throw new ArgumentNullException("cardInfo");
     }
     global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("setCVVOnCardInfo:"), cardInfo.Handle);
 }
Example #3
0
 public virtual void SetExpirationDateOnCardInfo(CCCCardInfo cardInfo)
 {
     if (cardInfo == null)
     {
         throw new ArgumentNullException("cardInfo");
     }
     if (IsDirectBinding)
     {
         global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("setExpirationDateOnCardInfo:"), cardInfo.Handle);
     }
     else
     {
         global::ApiDefinition.Messaging.void_objc_msgSendSuper_IntPtr(this.SuperHandle, Selector.GetHandle("setExpirationDateOnCardInfo:"), cardInfo.Handle);
     }
 }