NBGroup
@interface NBGroup : NSObject
グループクラス
-
グループID
Declaration
Objective-C
@property (readonly, nonatomic, nullable) NSString *groupId;Swift
var groupId: String? { get } -
グループネーム
Declaration
Objective-C
@property (readonly, nonatomic, nullable) NSString *name;Swift
var name: String? { get } -
ユーザ一覧
Declaration
Objective-C
@property (assign, readwrite, nonatomic, nullable) NSMutableArray<NSString *> *users;Swift
var users: NSMutableArray? { get set } -
グループ一覧
Declaration
Objective-C
@property (assign, readwrite, nonatomic, nullable) NSMutableArray<NSString *> *groups;Swift
var groups: NSMutableArray? { get set } -
グループ情報作成時刻
Declaration
Objective-C
@property (readonly, nonatomic, nullable) NSDate *created;Swift
var created: Date? { get } -
グループ情報更新時刻
Declaration
Objective-C
@property (readonly, nonatomic, nullable) NSDate *updated;Swift
var updated: Date? { get } -
グループ名を指定したイニシャライザ
Declaration
Objective-C
- (nonnull instancetype)initWithName:(nullable NSString *)name;Swift
init(name: String?)Parameters
nameグループ名
Return Value
NBGroupのインスタンス
-
グループ名を指定したNBGroupの生成を行う
Declaration
Objective-C
+ (nonnull instancetype)groupWithName:(nonnull NSString *)name;Parameters
nameグループ名
Return Value
NBGroupのインスタンス
-
グループの新規作成・変更を行う。
Declaration
Objective-C
- (void)saveInBackgroundWithBlock:(nonnull NBGroupsBlock)block;Swift
func saveInBackground(completion block: @escaping NBGroupsBlock)Parameters
block実行結果を受け取るブロック
-
グループの削除を行う。
Declaration
Objective-C
- (void)deleteInBackgroundWithBlock:(nonnull NBResultBlock)block;Swift
func deleteInBackground(completion block: @escaping NBResultBlock)Parameters
block実行結果を受け取るブロック
-
グループ情報の一覧取得を行う。
Declaration
Objective-C
+ (void)queryGroupInBackgroundWithBlock:(nonnull NBGroupsBlock)block;Swift
class func queryInBackground(completion block: @escaping NBGroupsBlock)Parameters
block実行結果を受け取るブロック
-
グループ情報の取得を行う。
Declaration
Objective-C
+ (void)getGroupInBackgroundWithName:(nonnull NSString *)name block:(nonnull NBGroupsBlock)block;Swift
class func getInBackground(name: String, completion block: @escaping NBGroupsBlock)Parameters
name検索対象のグループ名
block実行結果を受け取るブロック
NBGroup Class Reference