SippoGroup
public class SippoGroup
Represents a group
-
Name of the group
Declaration
Swift
public var name: String
-
Group identifier
Declaration
Swift
public var groupId: String
-
Users who are joined to group
Declaration
Swift
public var participants: [String]!
-
Add a new participant to group
Declaration
Swift
public func add(participant: String, task: @escaping (SippoTask<Void, SippoResourceError>) -> ())
Parameters
participant
Participant to be added
task
Async task
-
As group owners expel a participant from group
Declaration
Swift
public func expel(participant: String, task: @escaping (SippoTask<Void, SippoResourceError>) -> ())
Parameters
participant
Participant to be expelled
task
Async task
-
Leave the group
- task: Async task
Declaration
Swift
public func leave(task: @escaping (SippoTask<Void, SippoResourceError>) -> ())
-
As group owner expel all participants
Declaration
Swift
public func removeAllUsers(task: @escaping (SippoTask<Void, SippoResourceError>) -> ())
Parameters
task
Async task
-
Check if a participant belongs to the group
Declaration
Swift
public func hasParticipant(_ participant: String, task: @escaping (SippoTask<Bool, SippoResourceError>) -> ())
Parameters
participant
Participant to check
task
Async task
-
Fetch phonebooks associated to the group
Declaration
Swift
public func fetchPhonebooks(task: @escaping (SippoTask<[Phonebook], SippoResourceError>) -> ())
Parameters
task
Async task