Skip to content

Instantly share code, notes, and snippets.

@PetkevichPavel
Created August 21, 2019 22:09
Show Gist options
  • Save PetkevichPavel/0e56bb6b2f83d3226b021704ee70c7d9 to your computer and use it in GitHub Desktop.
Save PetkevichPavel/0e56bb6b2f83d3226b021704ee70c7d9 to your computer and use it in GitHub Desktop.
Cloud Function: The class with all the objects which we will need in the future parsing remote config json.
export interface RemoteConfigObj {
parameters: Parameter;
version: Version;
}
export interface Parameter {
platform_setting: PlatformSettingsRC
}
export interface PlatformSettingsRC {
defaultValue: DefValue
}
export interface DefValue {
value: string
}
export interface Version {
versionNumber: number,
updateTime: string,
updateUser: User,
updateOrigin: string,
updateType: string
}
export interface User {
email: string
}
export interface PlatformSettingsObj {
platform: string,
isItDev: boolean,
isPushAvailable: boolean
}
export enum Platform {
IOS = "IOS",
AN = "AN",
BOTH = "BOTH"
}
export enum PushTopics{
PROD = "PUSH_RC",
DEV = "PUSH_RC_DEV"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment