@dream11mobile/react-native-firebase
Version:
A well tested, feature rich Firebase implementation for React Native, supporting iOS & Android. Individual module support for Admob, Analytics, Auth, Crash Reporting, Cloud Firestore, Database, Dynamic Links, Functions, Messaging (FCM), Remote Config, Sto
32 lines (27 loc) • 598 B
JavaScript
/**
*
* AndroidChannelGroup representation wrapper
*/
export default class AndroidChannelGroup {
constructor(groupId, name) {
this._groupId = groupId;
this._name = name;
}
get groupId() {
return this._groupId;
}
get name() {
return this._name;
}
build() {
if (!this._groupId) {
throw new Error('AndroidChannelGroup: Missing required `groupId` property');
} else if (!this._name) {
throw new Error('AndroidChannelGroup: Missing required `name` property');
}
return {
groupId: this._groupId,
name: this._name
};
}
}