import { getMyPresentationProposal_myPresentationProposal as PresentationProposalNode , getMyPresentationProposal_myPresentationProposal_category as CategoryNode , getMyPresentationProposal_myPresentationProposal_difficulty as DifficultyNode , getMyPresentationProposal_myPresentationProposal_owner } from 'lib/apollo_graphql/__generated__/getMyPresentationProposal' ; import { DurationNode , LanguageNode } from 'lib/apollo_graphql/__generated__/globalTypes' ; import { action , configure , observable } from 'mobx' ; configure ( { enforceActions : 'observed' } ) ; export class PresentationProposal implements PresentationProposalNode { __typename : 'PresentationProposalNode' = 'PresentationProposalNode' ; @ observable name : string = '' ; @ observable nameKo : string = '' ; @ observable nameEn : string = '' ; @ observable owner : getMyPresentationProposal_myPresentationProposal_owner | null = null ; @ observable desc : string = '' ; @ observable descKo : string = '' ; @ observable descEn : string = '' ; @ observable backgroundDesc : string = '' ; @ observable detailDesc : string = '' ; @ observable slideUrl : string = '' ; @ observable language : LanguageNode | null = null ; @ observable duration : DurationNode | null = null ; @ observable category : CategoryNode | null = null ; @ observable difficulty : DifficultyNode | null = null ; @ observable isPresentedBefore : boolean = false ; @ observable placePresentedBefore : string = '' ; @ observable presentedSlideUrlBefore : string = '' ; @ observable comment : string = '' ; @ observable isAgreed : boolean | null = null ; @ observable recordable : boolean = false ; @ observable submitted : boolean = false ; @ observable accepted : boolean = false ; @ observable categoryId : string = ( this . category && this . category . id ) || '1' ; @ observable difficultyId : string = ( this . difficulty && this . difficulty . id ) || '1' ; @ action setCategoryId ( newCategoryId ) { this . categoryId = newCategoryId ; } @ action setDifficultyId ( newDifficultyId ) { this . difficultyId = newDifficultyId ; } @ action setName ( newName ) { this . name = newName ; } @ action setNameKo ( newName ) { this . nameKo = newName ; } @ action setNameEn ( newName ) { this . nameEn = newName ; } @ action setDesc ( desc ) { this . desc = desc ; } @ action setDescKo ( desc ) { this . descKo = desc ; } @ action setDescEn ( desc ) { this . descEn = desc ; } @ action setBackgroundDesc ( newBackgroundDesc ) { this . backgroundDesc = newBackgroundDesc ; } @ action setDuration ( duration ) { this . duration = duration ; } @ action setLanguage ( language ) { this . language = language ; } @ action setSlideUrl ( newSlideUrl ) { this . slideUrl = newSlideUrl ; } @ action setDetailDesc ( newDetailDesc ) { this . detailDesc = newDetailDesc ; } @ action setIsPresentationBefore ( isPresentedBefore ) { this . isPresentedBefore = isPresentedBefore ; } @ action setPlacePresentedBefore ( placePresentedBefore ) { this . placePresentedBefore = placePresentedBefore ; } @ action setPresentedSlideUrlBefore ( presentedSlideUrlBefore ) { this . presentedSlideUrlBefore = presentedSlideUrlBefore ; } @ action setComment ( newComment ) { this . comment = newComment ; } }