Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1. public enum ProviderStatus
  2.     {
  3.         Online,
  4.         Offline,
  5.         Restricted
  6.     }
  7.  
  8.  
  9.  
  10.  
  11. public string GetStatus()
  12.         {
  13.             return this.status;
  14.         }
  15.  
  16.         public void SetStatus(ProviderStatus input)
  17.         {
  18.             this.status = input.ToString();
  19.         }
  20.  
  21.  
  22.  
  23. if (status == 1)
  24.                                 {
  25.                                     provider.SetStatus(ProviderStatus.Online);
  26.                                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement