Last active
July 16, 2021 17:37
-
-
Save codebytes/033fe6e397961484cb3f8de9fe76f8c1 to your computer and use it in GitHub Desktop.
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
// Root myDeserializedClass = JsonConvert.DeserializeObject<Root>(myJsonResponse); | |
public class Flags | |
{ | |
} | |
public class Settings | |
{ | |
public Flags flags { get; set; } | |
} | |
public class Location | |
{ | |
public bool isAway { get; set; } | |
public object latitude { get; set; } | |
public object longitude { get; set; } | |
public string modelKey { get; set; } | |
} | |
public class CloudAccount | |
{ | |
public string firstName { get; set; } | |
public string lastName { get; set; } | |
public string email { get; set; } | |
public object profileImg { get; set; } | |
public string user { get; set; } | |
public string id { get; set; } | |
public string cloudId { get; set; } | |
public string name { get; set; } | |
public string modelKey { get; set; } | |
public Location location { get; set; } | |
} | |
public class User | |
{ | |
public List<object> permissions { get; set; } | |
public object lastLoginIp { get; set; } | |
public object lastLoginTime { get; set; } | |
public bool isOwner { get; set; } | |
public bool enableNotifications { get; set; } | |
public Settings settings { get; set; } | |
public List<string> groups { get; set; } | |
public Location location { get; set; } | |
public List<object> alertRules { get; set; } | |
public string id { get; set; } | |
public bool hasAcceptedInvite { get; set; } | |
public List<string> allPermissions { get; set; } | |
public CloudAccount cloudAccount { get; set; } | |
public string name { get; set; } | |
public string firstName { get; set; } | |
public string lastName { get; set; } | |
public string email { get; set; } | |
public string localUsername { get; set; } | |
public string modelKey { get; set; } | |
} | |
public class Group | |
{ | |
public string name { get; set; } | |
public List<string> permissions { get; set; } | |
public string type { get; set; } | |
public bool isDefault { get; set; } | |
public string id { get; set; } | |
public string modelKey { get; set; } | |
} | |
public class Ports | |
{ | |
public int ump { get; set; } | |
public int http { get; set; } | |
public int https { get; set; } | |
public int rtsp { get; set; } | |
public int rtsps { get; set; } | |
public int rtmp { get; set; } | |
public int devicesWss { get; set; } | |
public int cameraHttps { get; set; } | |
public int cameraTcp { get; set; } | |
public int liveWs { get; set; } | |
public int liveWss { get; set; } | |
public int tcpStreams { get; set; } | |
public int playback { get; set; } | |
public int emsCLI { get; set; } | |
public int emsLiveFLV { get; set; } | |
public int cameraEvents { get; set; } | |
public int tcpBridge { get; set; } | |
public int ucore { get; set; } | |
public int discoveryClient { get; set; } | |
} | |
public class WifiSettings | |
{ | |
public bool useThirdPartyWifi { get; set; } | |
public object ssid { get; set; } | |
public object password { get; set; } | |
} | |
public class LocationSettings | |
{ | |
public bool isAway { get; set; } | |
public bool isGeofencingEnabled { get; set; } | |
public double latitude { get; set; } | |
public double longitude { get; set; } | |
public int radius { get; set; } | |
} | |
public class FeatureFlags | |
{ | |
public bool beta { get; set; } | |
public bool dev { get; set; } | |
} | |
public class Cpu | |
{ | |
public double averageLoad { get; set; } | |
public double temperature { get; set; } | |
} | |
public class Memory | |
{ | |
public int available { get; set; } | |
public int free { get; set; } | |
public int total { get; set; } | |
} | |
public class Storage | |
{ | |
public long available { get; set; } | |
public bool isRecycling { get; set; } | |
public long size { get; set; } | |
public string type { get; set; } | |
public long used { get; set; } | |
public List<object> devices { get; set; } | |
} | |
public class Tmpfs | |
{ | |
public int available { get; set; } | |
public int total { get; set; } | |
public int used { get; set; } | |
public string path { get; set; } | |
} | |
public class SystemInfo | |
{ | |
public Cpu cpu { get; set; } | |
public Memory memory { get; set; } | |
public Storage storage { get; set; } | |
public Tmpfs tmpfs { get; set; } | |
} | |
public class AllMessage | |
{ | |
public string type { get; set; } | |
public string text { get; set; } | |
} | |
public class DoorbellSettings | |
{ | |
public string defaultMessageText { get; set; } | |
public int defaultMessageResetTimeoutMs { get; set; } | |
public List<object> customMessages { get; set; } | |
public List<AllMessage> allMessages { get; set; } | |
} | |
public class SmartDetectAgreement | |
{ | |
public string status { get; set; } | |
public object lastUpdateAt { get; set; } | |
} | |
public class RecordingSpace | |
{ | |
public int total { get; set; } | |
public int used { get; set; } | |
public int available { get; set; } | |
} | |
public class StorageStats | |
{ | |
public int utilization { get; set; } | |
public int capacity { get; set; } | |
public int remainingCapacity { get; set; } | |
public RecordingSpace recordingSpace { get; set; } | |
} | |
public class MaxCameraCapacity | |
{ | |
public int _4K { get; set; } | |
public int HD { get; set; } | |
} | |
public class Nvr | |
{ | |
public string mac { get; set; } | |
public string host { get; set; } | |
public string name { get; set; } | |
public bool canAutoUpdate { get; set; } | |
public bool isStatsGatheringEnabled { get; set; } | |
public string timezone { get; set; } | |
public string version { get; set; } | |
public string firmwareVersion { get; set; } | |
public object uiVersion { get; set; } | |
public string hardwarePlatform { get; set; } | |
public Ports ports { get; set; } | |
public int uptime { get; set; } | |
public long lastSeen { get; set; } | |
public bool isUpdating { get; set; } | |
public object lastUpdateAt { get; set; } | |
public bool isStation { get; set; } | |
public bool enableAutomaticBackups { get; set; } | |
public bool enableStatsReporting { get; set; } | |
public bool isSshEnabled { get; set; } | |
public object errorCode { get; set; } | |
public string releaseChannel { get; set; } | |
public List<string> hosts { get; set; } | |
public bool enableBridgeAutoAdoption { get; set; } | |
public string hardwareId { get; set; } | |
public string hardwareRevision { get; set; } | |
public int hostType { get; set; } | |
public string hostShortname { get; set; } | |
public bool isHardware { get; set; } | |
public string timeFormat { get; set; } | |
public object recordingRetentionDurationMs { get; set; } | |
public bool enableCrashReporting { get; set; } | |
public bool disableAudio { get; set; } | |
public string analyticsData { get; set; } | |
public string anonymousDeviceId { get; set; } | |
public bool isRecycling { get; set; } | |
public WifiSettings wifiSettings { get; set; } | |
public LocationSettings locationSettings { get; set; } | |
public FeatureFlags featureFlags { get; set; } | |
public SystemInfo systemInfo { get; set; } | |
public DoorbellSettings doorbellSettings { get; set; } | |
public SmartDetectAgreement smartDetectAgreement { get; set; } | |
public StorageStats storageStats { get; set; } | |
public string id { get; set; } | |
public bool isAway { get; set; } | |
public bool isSetup { get; set; } | |
public string network { get; set; } | |
public string type { get; set; } | |
public long upSince { get; set; } | |
public bool isRecordingDisabled { get; set; } | |
public MaxCameraCapacity maxCameraCapacity { get; set; } | |
public string modelKey { get; set; } | |
} | |
public class WiredConnectionState | |
{ | |
public object phyRate { get; set; } | |
} | |
public class Bridge | |
{ | |
public string mac { get; set; } | |
public string host { get; set; } | |
public string connectionHost { get; set; } | |
public string type { get; set; } | |
public string name { get; set; } | |
public long upSince { get; set; } | |
public long lastSeen { get; set; } | |
public long connectedSince { get; set; } | |
public string state { get; set; } | |
public int hardwareRevision { get; set; } | |
public string firmwareVersion { get; set; } | |
public object latestFirmwareVersion { get; set; } | |
public string firmwareBuild { get; set; } | |
public bool isUpdating { get; set; } | |
public bool isAdopting { get; set; } | |
public bool isAdopted { get; set; } | |
public bool isAdoptedByOther { get; set; } | |
public bool isProvisioned { get; set; } | |
public bool isRebooting { get; set; } | |
public bool isSshEnabled { get; set; } | |
public bool canAdopt { get; set; } | |
public bool isAttemptingToConnect { get; set; } | |
public WiredConnectionState wiredConnectionState { get; set; } | |
public string id { get; set; } | |
public bool isConnected { get; set; } | |
public string platform { get; set; } | |
public string modelKey { get; set; } | |
} | |
public class Root | |
{ | |
public string authUserId { get; set; } | |
public string accessKey { get; set; } | |
public List<object> cameras { get; set; } | |
public List<User> users { get; set; } | |
public List<Group> groups { get; set; } | |
public List<object> liveviews { get; set; } | |
public Nvr nvr { get; set; } | |
public List<object> legacyUFVs { get; set; } | |
public string lastUpdateId { get; set; } | |
public List<object> viewers { get; set; } | |
public List<object> displays { get; set; } | |
public List<object> lights { get; set; } | |
public List<Bridge> bridges { get; set; } | |
public List<object> sensors { get; set; } | |
public List<object> doorlocks { get; set; } | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment