Created
August 21, 2019 22:09
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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