export class CompletedAchievement { readonly id : string ; readonly numberOfCompletions : number ; constructor ( id , numberOfCompletions ) { this . id = id ; this . numberOfCompletions = numberOfCompletions ; } public static create ( base ) { return Object . assign ( new CompletedAchievement ( null , null ) , base ) ; } public update ( value ) { return Object . assign ( new CompletedAchievement ( this . id , this . numberOfCompletions ) , this , value ) ; } }