public static void RegisterFCMToken(string token = null)
        {
            if (string.IsNullOrWhiteSpace(token))
            {
                if (App.Current.Properties.ContainsKey("FCMToken"))
                {
                    token = App.Current.Properties["FCMToken"] as string;
                }
            }
            else
            {
                App.Current.Properties["FCMToken"] = token;
            }

            if (!string.IsNullOrWhiteSpace(token))
            {
                ObservableResource <Dictionary <string, string> > observableResource = new ObservableResource <Dictionary <string, string> >();
                var body = new Dictionary <string, string>()
                {
                    { "Token", token }
                };
                RockClient.PostResource(observableResource, "/api/avalanche/registerfcm", body);
            }
        }
 internal void Post(string resource, Dictionary <string, string> body)
 {
     resource = string.Format("/api/avalanche/block/{0}/{1}", _blockId, resource);
     RockClient.PostResource(_observableResource, resource, body);
 }
 internal void Get(string resource, bool refresh = false)
 {
     resource = string.Format("/api/avalanche/block/{0}/{1}", _blockId, resource);
     RockClient.GetResource(_observableResource, resource, refresh);
 }