Пример #1
0
 public static CreateGroupState FetchCreateGroup(CreateGroupState state)
 {
     return(state with {
         IsLoadingCreateGroup = true,
         CreateGroupErrorMessage = null
     });
 }
Пример #2
0
 public static CreateGroupState RecievedCreateGroup(CreateGroupState state)
 {
     return(state with {
         IsLoadingCreateGroup = false,
         CreateGroupErrorMessage = null
     });
 }
Пример #3
0
 public static CreateGroupState ErrorFetchingCreateGroup(CreateGroupState state,
                                                         ErrorFetchingCreateGroupAction action)
 {
     return(state with {
         CreateGroupErrorMessage = action.ErrorMessage,
         IsLoadingCreateGroup = false
     });
 }
Пример #4
0
 public static CreateGroupState HideCreateContainerForm(CreateGroupState state)
 {
     return(state with {
         ShowCreateGroupForm = false,
         IsLoadingCreateGroup = false,
         CreateGroupErrorMessage = null,
         ContainerId = 0,
         ContainerTitle = ""
     });
 }
Пример #5
0
 public static CreateGroupState ShowCreateGroupForm(CreateGroupState state,
                                                    ShowCreateGroupFormAction action)
 {
     return(state with {
         ShowCreateGroupForm = true,
         ContainerId = action.ContainerId,
         ContainerTitle = action.ContainerTitle,
         IsLoadingCreateGroup = false,
         CreateGroupErrorMessage = null
     });
 }