convertFromPigeon static method
Convert from SKSubscriptionPeriodUnitMessage
to SKSubscriptionPeriodUnit
Implementation
static SKSubscriptionPeriodUnit convertFromPigeon(
SKSubscriptionPeriodUnitMessage msg) {
switch (msg) {
case SKSubscriptionPeriodUnitMessage.day:
return SKSubscriptionPeriodUnit.day;
case SKSubscriptionPeriodUnitMessage.week:
return SKSubscriptionPeriodUnit.week;
case SKSubscriptionPeriodUnitMessage.month:
return SKSubscriptionPeriodUnit.month;
case SKSubscriptionPeriodUnitMessage.year:
return SKSubscriptionPeriodUnit.year;
}
}