Пример #1
0
 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));
 }
Пример #3
0
 public static NotificationButton FromRpcModel(this THActionButton button)
 {
     return(NotificationButton.Create(button.Title, button.ActionId));
 }
Пример #4
0
 public NotificationContent AddActionButton(NotificationButton actionButton)
 {
     _actionButtons.Add(actionButton);
     return(this);
 }