import { GenEventOutput } from '~/pages/event/entities/gen-event-search.types';
import { SortParams } from '../../types/EventSorting';
import { GenEventSearch } from './gen-event-search-list.state';

export class LoadGenEvents {
    static readonly type = '[Gen Event search list] Load Gen Events';
}
export class SetGenEvents {
    static readonly type = '[Gen Event search list] Set Gen Events';
    constructor(public events: GenEventOutput[]) {
    }
}
export class LoadGenEventTypes {
    static readonly type = '[Gen Event search list] Load Gen Event Types';
}
export class LoadGenEventStates {
    static readonly type = '[Gen Event search list] Load Gen Event States';
}

export class LoadGenEventScopes {
    static readonly type = '[Gen Event search list] Load Gen Event States';
}


export class SetGenEventSearchParams {
    static readonly type = '[Gen Event search list] Set Gen Event Search params';

    constructor(public payload: GenEventSearch = null) {
    }
}
export class SetGenEventSortParams {
    static readonly type = '[Gen Event search list] Set Gen Event Sort Params';

    constructor(public payload: SortParams = null) {
    }
}
