Example #1
0
 public static string GetStatusMessage(RemoteSystemStatus status, string uniqueId)
 {
     if (status == RemoteSystemStatus.Available)
     {
         if (DatabaseHelper.Exists(uniqueId))
         {
             return("Available".GetLocalized());
         }
         else
         {
             return("ConfigurationRequired".GetLocalized());
         }
     }
     else
     {
         return("Unavailable".GetLocalized());
     }
 }
Example #2
0
 public static NormalizedRemoteSystemStatus ConvertToNormalizedRemoteSystemStatus(this RemoteSystemStatus status)
 {
     if (status.Value == RemoteSystemStatus.Available.Value)
     {
         return(NormalizedRemoteSystemStatus.Available);
     }
     else if (status.Value == RemoteSystemStatus.DiscoveringAvailability.Value)
     {
         return(NormalizedRemoteSystemStatus.DiscoveringAvailability);
     }
     else if (status.Value == RemoteSystemStatus.Unavailable.Value)
     {
         return(NormalizedRemoteSystemStatus.Unavailable);
     }
     else if (status.Value == RemoteSystemStatus.Unknown.Value)
     {
         return(NormalizedRemoteSystemStatus.Unknown);
     }
     else
     {
         return(NormalizedRemoteSystemStatus.Unknown);
     }
 }