1
wei
2021-01-21 62d098cb78296feaa6f786a20748921338db838c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
//
// TuyaSmartHomeAddMemberRequestModel.h
// TuyaSmartDeviceKit
//
// Copyright (c) 2014-2021 Tuya Inc. (https://developer.tuya.com)
 
#import <Foundation/Foundation.h>
 
NS_ASSUME_NONNULL_BEGIN
 
@interface TuyaSmartHomeAddMemberRequestModel : NSObject
 
/// Nicknames for invitees.
@property (nonatomic, copy) NSString *name;
 
/// Invited accounts.
@property (nonatomic, copy) NSString *account;
 
/// Invitee account corresponding to the country code.
@property (nonatomic, copy) NSString *countryCode;
 
/// Member role, please set the correct role type you want to set.
@property (nonatomic, assign) TYHomeRoleType role;
 
/// The avatar set for the invitee, if set to nil, the invitee's personal avatar will be used.
@property (nonatomic, strong) UIImage *headPic;
 
/// Whether the invitee needs to agree to accept the invitation. YES - the invited account automatically accepts the family invitation without the invitee's confirmation; NO - the invitee's consent is required to join the family.
@property (nonatomic, assign) BOOL autoAccept;
 
@end
 
@interface TuyaSmartHomeInvitationCreateRequestModel : NSObject
 
/// Home ID
@property (nonatomic, assign) long long homeID;
 
/// A boolean value indicates whether need invitation message.
@property (nonatomic, assign) BOOL needMsgContent;
 
@end
 
@interface TuyaSmartHomeInvitationReinviteRequestModel : NSObject
 
/// The invitation ID.
@property (nonatomic, strong) NSNumber *invitationID;
 
/// A boolean value indicates whether need invitation message.
@property (nonatomic, assign) BOOL needMsgContent;
 
@end
 
@interface TuyaSmartHomeInvitationInfoRequestModel : NSObject
 
/// The invitation ID.
@property (nonatomic, strong) NSNumber *invitationID;
 
/// Invitation remark name.
@property (nonatomic, copy) NSString *name;
 
@end
 
@interface TuyaSmartHomeInvitationResultModel : NSObject
 
/// The Invitation message.
@property (nonatomic, copy) NSString *invitationMsgContent;
 
/// The invitation code.
@property (nonatomic, copy) NSString *invitationCode;
 
@end
 
 
@interface TuyaSmartHomeInvitationRecordModel : NSObject;
 
/// Invitation code valid time, unit:hour.
@property (nonatomic, assign) NSInteger validTime;
 
/// The invitation ID.
@property (nonatomic, strong) NSNumber *invitationID;
 
/// The invitation code.
@property (nonatomic, copy) NSString *invitationCode;
 
/// Invitation remark name.
@property (nonatomic, copy) NSString *name;
 
@end
NS_ASSUME_NONNULL_END