public DeveloperPageDeveloper( int userId, string firstName, string lastName, Uri photoUri, string role, DateTime registrationDate, int projectCount, Uri vkPageUri, AccountRole accountRole, ConfirmationStatus confirmationStatus, bool isHidden) { Require.Positive(userId, nameof(userId)); Require.NotEmpty(firstName, nameof(firstName)); Require.NotEmpty(lastName, nameof(lastName)); Require.NotEmpty(role, nameof(role)); Require.ZeroOrGreater(projectCount, nameof(projectCount)); UserId = userId; FirstName = firstName; LastName = lastName; PhotoUri = photoUri; Role = role; RegistrationDate = registrationDate; ProjectCount = projectCount; VkPageUri = vkPageUri; AccountRole = accountRole; ConfirmationStatus = confirmationStatus; IsHidden = isHidden; }
private void RenderStatus(ConfirmationStatus status) { switch (status) { case ConfirmationStatus.Pending: confirmedSignal.Visibility = Visibility.Collapsed; lblText.Text = "... Pending"; lblText.Foreground = (Brush)this.Resources["PendingColor"]; rectangle.Stroke = (Brush)this.Resources["PendingColor"]; break; case ConfirmationStatus.Invalid: confirmedSignal.Visibility = Visibility.Collapsed; lblText.Text = "X Invalid"; lblText.Foreground = (Brush)this.Resources["InvalidColor"]; rectangle.Stroke = (Brush)this.Resources["InvalidColor"]; break; case ConfirmationStatus.Confirmed: confirmedSignal.Visibility = Visibility.Visible; lblText.Text = " Confirmed"; lblText.Foreground = (Brush)this.Resources["ConfirmedColor"]; rectangle.Stroke = (Brush)this.Resources["ConfirmedColor"]; break; default: confirmedSignal.Visibility = Visibility.Collapsed; lblText.Text = "No Status"; lblText.Foreground = Brushes.Gray; rectangle.Stroke = Brushes.Gray; break; } }
public DeveloperPageDeveloper( int userId, string firstName, string lastName, Uri photoUri, string role, DateTime registrationDate, int projectCount, Uri vkPageUri, AccountRole accountRole, ConfirmationStatus confirmationStatus, bool isHidden) { Require.Positive(userId, nameof(userId)); Require.NotEmpty(firstName, nameof(firstName)); Require.NotEmpty(lastName, nameof(lastName)); Require.NotEmpty(role, nameof(role)); Require.ZeroOrGreater(projectCount, nameof(projectCount)); UserId = userId; FirstName = firstName; LastName = lastName; PhotoUri = photoUri; Role = role; RegistrationDate = registrationDate; ProjectCount = projectCount; VkPageUri = vkPageUri; AccountRole = accountRole; ConfirmationStatus = confirmationStatus; IsHidden = isHidden; }
private void RenderStatus(ConfirmationStatus status) { switch (status) { case ConfirmationStatus.Pending: confirmedSignal.Visibility = Visibility.Collapsed; lblText.Text = "... Pending"; lblText.Foreground = (Brush)this.Resources["PendingColor"]; rectangle.Stroke = (Brush)this.Resources["PendingColor"]; break; case ConfirmationStatus.Invalid: confirmedSignal.Visibility = Visibility.Collapsed; lblText.Text = "X Invalid"; lblText.Foreground = (Brush)this.Resources["InvalidColor"]; rectangle.Stroke = (Brush)this.Resources["InvalidColor"]; break; case ConfirmationStatus.Confirmed: confirmedSignal.Visibility = Visibility.Visible; lblText.Text = " Confirmed"; lblText.Foreground = (Brush)this.Resources["ConfirmedColor"]; rectangle.Stroke = (Brush)this.Resources["ConfirmedColor"]; break; default: confirmedSignal.Visibility = Visibility.Collapsed; lblText.Text = "No Status"; lblText.Foreground = Brushes.Gray; rectangle.Stroke = Brushes.Gray; break; } }
public Account( string firstname, string lastname, MailAddress email, Password password, AccountRole role, ConfirmationStatus confirmationStatus, DateTime registrationTime, Profile profile, int redmineUserId, int gitlabUserId) { Require.NotEmpty(firstname, nameof(firstname)); Require.NotEmpty(lastname, nameof(lastname)); Require.NotNull(email, nameof(email)); Require.NotNull(password, nameof(password)); Require.ZeroOrGreater(redmineUserId, nameof(redmineUserId)); Require.ZeroOrGreater(gitlabUserId, nameof(gitlabUserId)); Require.NotNull(email, nameof(email)); Require.NotNull(password, nameof(password)); Firstname = firstname; Lastname = lastname; Email = email; Password = password; Role = role; ConfirmationStatus = confirmationStatus; RegistrationTime = registrationTime; Profile = profile; RedmineUserId = redmineUserId; GitlabUserId = gitlabUserId; }
public Account( string firstname, string lastname, MailAddress email, Password password, AccountRole role, ConfirmationStatus confirmationStatus, DateTime registrationTime, Profile profile) { Require.NotEmpty(firstname, nameof(firstname)); Require.NotEmpty(lastname, nameof(lastname)); Require.NotNull(email, nameof(email)); Require.NotNull(password, nameof(password)); Require.NotNull(email, nameof(email)); Require.NotNull(password, nameof(password)); Firstname = firstname; Lastname = lastname; Email = email; Password = password; Role = role; ConfirmationStatus = confirmationStatus; RegistrationTime = registrationTime; Profile = profile; }
public HttpResponseMessage <ConfirmationStatus> Post(ParkingConfirmation parkingConfirmation) { var result = new ConfirmationStatus() { Succeed = true }; return(Request.CreateResponse(result)); }
public ConfirmationCollection Reject() { if (_status == ConfirmationStatus.Unconfirmed) { _status = ConfirmationStatus.Rejected; } return(this); }
public ConfirmationCollection Move(long newVersionNumber) { if (_status == ConfirmationStatus.Unconfirmed) { _status = ConfirmationStatus.Moved; NewVersionNumber = newVersionNumber; } return(this); }
public DeveloperPageDeveloper(int userId, string firstName, string lastName, Uri photoUri, string role, DateTime registrationDate, int projectCount, Uri vkPageUri, AccountRole accountRole, ConfirmationStatus confirmationStatus, bool isHidden) { UserId = userId; FirstName = firstName ?? throw new ArgumentNullException(nameof(firstName)); LastName = lastName ?? throw new ArgumentNullException(nameof(lastName)); PhotoUri = photoUri; Role = role ?? throw new ArgumentNullException(nameof(role)); RegistrationDate = registrationDate; ProjectCount = projectCount; VkPageUri = vkPageUri; AccountRole = accountRole; ConfirmationStatus = confirmationStatus; IsHidden = isHidden; }
public Account( MailAddress email, Password password, DateTime registrationTime, AccountRoles role, ConfirmationStatus confirmationStatus) { Require.NotNull(email, nameof(email)); Require.NotNull(password, nameof(password)); Email = email; Password = password; RegistrationTime = registrationTime; Profile = new Profile(); Profile.Tags = new HashSet <Tag>(); Role = role; ConfirmationStatus = confirmationStatus; }
public Developer( int userId, string firstName, string lastName, string email, int redmineUserId, int gitlabUserId, ConfirmationStatus confirmationStatus, Uri photoUri, DateTime registrationDate, Uri vkProfileUri, string phoneNumber, int? studentAccessionYear, string studyingDirection, string instituteName, string specialization, string role, DeveloperPageProjectPreview[] projects) { Require.Positive(userId, nameof(userId)); Require.NotEmpty(firstName, nameof(firstName)); Require.NotEmpty(lastName, nameof(lastName)); Require.NotEmpty(email, nameof(email)); UserId = userId; FirstName = firstName; LastName = lastName; Email = email; RedmineUserId = redmineUserId; GitlabUserId = gitlabUserId; ConfirmationStatus = confirmationStatus; PhotoUri = photoUri; RegistrationDate = registrationDate; VkProfileUri = vkProfileUri; PhoneNumber = phoneNumber; StudentAccessionYear = studentAccessionYear; StudyingDirection = studyingDirection; InstituteName = instituteName; Specialization = specialization; Role = role; Projects = projects ?? EmptyArray.Get<DeveloperPageProjectPreview>(); }
public Developer( int userId, string firstName, string lastName, string email, ConfirmationStatus confirmationStatus, Uri photoUri, DateTime registrationDate, Uri vkProfileUri, string phoneNumber, int?studentAccessionYear, string studyingDirection, string instituteName, string specialization, string role, DeveloperPageProjectPreview[] projects) { Require.Positive(userId, nameof(userId)); Require.NotEmpty(firstName, nameof(firstName)); Require.NotEmpty(lastName, nameof(lastName)); Require.NotEmpty(email, nameof(email)); UserId = userId; FirstName = firstName; LastName = lastName; Email = email; ConfirmationStatus = confirmationStatus; PhotoUri = photoUri; RegistrationDate = registrationDate; VkProfileUri = vkProfileUri; PhoneNumber = phoneNumber; StudentAccessionYear = studentAccessionYear; StudyingDirection = studyingDirection; InstituteName = instituteName; Specialization = specialization; Role = role; Projects = projects ?? EmptyArray.Get <DeveloperPageProjectPreview>(); }
public Developer(int userId, string firstName, string lastName, string email, ConfirmationStatus confirmationStatus, bool isOauthRegistered, Uri photoUri, DateTime registrationDate, Uri linkToGithubProfile, Uri vkProfileUri, string phoneNumber, int?studentAccessionYear, bool isGraduated, string studyingDirection, string instituteName, string specialization, string role) { UserId = userId; FirstName = firstName ?? throw new ArgumentNullException(nameof(firstName)); LastName = lastName ?? throw new ArgumentNullException(nameof(lastName)); Email = email ?? throw new ArgumentNullException(nameof(email)); ConfirmationStatus = confirmationStatus; IsOauthRegistered = isOauthRegistered; PhotoUri = photoUri; RegistrationDate = registrationDate; LinkToGithubProfile = linkToGithubProfile; VkProfileUri = vkProfileUri; PhoneNumber = phoneNumber; StudentAccessionYear = studentAccessionYear; IsGraduated = isGraduated; StudyingDirection = studyingDirection; InstituteName = instituteName; Specialization = specialization; Role = role; }
public IActionResult SetStatus(int orderId, ConfirmationStatus confirmationStatus, OrderStatus orderStatus, string type) { var order = this.orders.Get(orderId); if (order == null) { return(this.Json(new { success = false })); } switch (type) { case "confirmation": order.ConfirmationStatus = confirmationStatus; break; case "order": order.OrderStatus = orderStatus; break; } this.orders.Save(); return(this.Json(new { success = true })); }
public void SetConfirmationStatus(int status) { ConfirmationStatus = (ConfirmationStatus)status; }
public void SetActive(bool active) { transform.GetChild(0).gameObject.SetActive(active); ConfirmationStatus = ConfirmationStatus.None; }
public CloseButtonClickedEventArgs(ConfirmationStatus confirmationStatus) : base() { this.ConfirmationStatus = confirmationStatus; }
public CloseButtonClickedEventArgs(ConfirmationStatus confirmationStatus) : base() { this.ConfirmationStatus = confirmationStatus; }