ios-unity/purchase/Section.m
2023-07-20 15:28:40 +08:00

26 lines
477 B
Objective-C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
See LICENSE folder for this samples licensing information.
Abstract:
Model class used to represent a list of products/purchases.
*/
#import "Section.h"
@implementation Section
-(instancetype)init {
return [self initWithName:nil elements:@[]];
}
-(instancetype)initWithName:(NSString *)name elements:(NSArray *)elements {
self = [super init];
if(self != nil) {
_name = [name copy];
_elements = elements;
}
return self;
}
@end