public void GetUsers()
        {
            RestClient client = new RestClient();

            client.BaseHost = baseHost;
            client.BaseUrl  = new Uri(baseUrl);

            RestRequest request = new RestRequest();

            request.Resource      = getUsersResourceUrl;
            request.RequestFormat = DataFormat.Json;
            request.Method        = Method.POST;
            request.AddHeader("Authorization", $"bearer : {accessToken}");
            request.AddQueryParameter("email", "v-rusom");
            request.AddQueryParameter("firstname", "Rupesh");


            IRestResponse restResponse = client.Execute(request);


            user       = JsonConvert.DeserializeObject <User>(restResponse.Content);
            userStatus = JsonConvert.DeserializeObject <User.Status>(restResponse.Content);
            userData   = JsonConvert.DeserializeObject <User.Data>(restResponse.Content);

            validations.StatusValidations(Convert.ToInt16(restResponse.StatusCode));
        }
 public Validations(Status status = null,
                    LoginSessionToken loginSessionToken = null, LoginSessionToken.Data loginSessionTokenData = null, LoginSessionToken.Status loginSessionTokenStatus = null,
                    Roles roles = null, Roles.Data rolesData = null, Roles.Status rolesStatus = null,
                    User user   = null, User.Data userData   = null, User.Status userStatus   = null)
 {
     this.status                  = status;
     this.loginSessionToken       = loginSessionToken;
     this.loginSessionTokenData   = loginSessionTokenData;
     this.loginSessionTokenStatus = loginSessionTokenStatus;
     this.roles       = roles;
     this.rolesData   = rolesData;
     this.rolesStatus = rolesStatus;
     this.user        = user;
     this.userData    = userData;
     this.userStatus  = userStatus;
 }