public ParsedVenmoPayment(double amount,
                           string note,
                           List <string> recipients,
                           VenmoAction action,
                           VenmoAudience audience)
 {
     Amount     = amount;
     Note       = note;
     Recipients = recipients;
     Action     = action;
     Audience   = audience;
 }
Exemple #2
0
 public static string ToString(this VenmoAction venmoAction)
 {
     if (venmoAction == VenmoAction.Charge)
     {
         return("charge");
     }
     else if (venmoAction == VenmoAction.Pay)
     {
         return("pay");
     }
     else
     {
         throw new Exception($"Unknown VenmoAction: {venmoAction.ToString()}");
     }
 }