public ParsedVenmoPayment(double amount,
                           string note,
                           List <string> recipients,
                           VenmoAction action,
                           VenmoAudience audience)
 {
     Amount     = amount;
     Note       = note;
     Recipients = recipients;
     Action     = action;
     Audience   = audience;
 }
Esempio n. 2
0
 public static string ToString(this VenmoAudience venmoAudience)
 {
     if (venmoAudience == VenmoAudience.Private)
     {
         return("private");
     }
     else if (venmoAudience == VenmoAudience.Friends)
     {
         return("friends");
     }
     else if (venmoAudience == VenmoAudience.Public)
     {
         return("public");
     }
     else
     {
         throw new Exception($"Unknown VenmoAudience: {venmoAudience.ToString()}");
     }
 }