internal static FFMsg_G2H PrintTicket(string ipAddress, double amount, FF_AppId_TicketTypes type)
        {
            TicketIDInfo ticketID = GenerateTicket(ipAddress, amount);
            if (ticketID == null) return null;

            return WrapMessageAndReturn(ipAddress, FF_FlowInitiation.Gmu, new FFTgt_G2H_Ticket_Printed_Request()
            {
                BarCode = ticketID.Barcode,
                Amount = amount,
                Type = type,
            });
        }
Beispiel #2
0
        internal static FFMsg_G2H PrintTicket(string ipAddress, double amount, FF_AppId_TicketTypes type)
        {
            TicketIDInfo ticketID = GenerateTicket(ipAddress, amount);

            if (ticketID == null)
            {
                return(null);
            }

            return(WrapMessageAndReturn(ipAddress, FF_FlowInitiation.Gmu, new FFTgt_G2H_Ticket_Printed_Request()
            {
                BarCode = ticketID.Barcode,
                Amount = amount,
                Type = type,
            }));
        }
Beispiel #3
0
 internal static FFMsg_H2G RedeemTicketResponse(string ipAddress, string barcode, double amount, FF_AppId_TicketTypes type)
 {
     return(WrapMessageAndReturnH2G(ipAddress, FF_AppId_H2G_PollCodes.FreeformResponse,
                                    FF_FlowInitiation.Host, new FFTgt_H2G_Ticket_Redemption_Response()
     {
         Barcode = barcode,
         Amount = amount,
         Type = type,
     }));
 }
Beispiel #4
0
 internal static FFMsg_G2H RedeemTicketComplete(string ipAddress, string barcode, double amount, FF_AppId_TicketTypes type, FF_AppId_TicketRedemption_Close_Status status)
 {
     return(WrapMessageAndReturn(ipAddress, FF_FlowInitiation.Gmu, new FFTgt_G2H_Ticket_Redemption_Close()
     {
         Barcode = barcode,
         Amount = amount,
         Type = type,
         Status = status,
     }));
 }
 internal static FFMsg_H2G RedeemTicketResponse(string ipAddress, string barcode, double amount, FF_AppId_TicketTypes type)
 {
     return WrapMessageAndReturnH2G(ipAddress, FF_AppId_H2G_PollCodes.FreeformResponse,
        FF_FlowInitiation.Host, new FFTgt_H2G_Ticket_Redemption_Response()
        {
            Barcode = barcode,
            Amount = amount,
            Type = type,
        });
 }
 internal static FFMsg_G2H RedeemTicketComplete(string ipAddress, string barcode, double amount, FF_AppId_TicketTypes type, FF_AppId_TicketRedemption_Close_Status status)
 {
     return WrapMessageAndReturn(ipAddress, FF_FlowInitiation.Gmu, new FFTgt_G2H_Ticket_Redemption_Close()
     {
         Barcode = barcode,
         Amount = amount,
         Type = type,
         Status = status,
     });
 }
Beispiel #7
0
 public TicketTypeModel(FF_AppId_TicketTypes type)
 {
     this.Type = type;
 }