public static THActionButton ToRpcModel(this NotificationButton button) { return(new THActionButton { Title = button.Title, ActionId = button.ActionId }); }
private bool Equals(NotificationButton other) { return(string.Equals(Title, other.Title) && string.Equals(ActionId, other.ActionId)); }
public static NotificationButton FromRpcModel(this THActionButton button) { return(NotificationButton.Create(button.Title, button.ActionId)); }
public NotificationContent AddActionButton(NotificationButton actionButton) { _actionButtons.Add(actionButton); return(this); }