public static string GetString(this PaymentCompleteType type) { switch (type) { case PaymentCompleteType.Success: return("success"); case PaymentCompleteType.Fail: return("fail"); case PaymentCompleteType.Unknown: default: return("unknown"); } }
public PaymentComplete(PaymentCompleteType paymentComplete) { result = paymentComplete.GetString(); }