Skip to content

Commit

Permalink
Merge branch 'main' into fix/text-decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoGlastra authored Mar 14, 2022
2 parents 84575e4 + 1e9715b commit 9ea748b
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Expose, Type } from 'class-transformer'
import { Equals, IsDate } from 'class-validator'
import { Equals } from 'class-validator'

import { AgentMessage } from '../../../agent/AgentMessage'

Expand All @@ -26,17 +25,11 @@ export class MediationRequestMessage extends AgentMessage {

if (options) {
this.id = options.id || this.generateId()
this.sentTime = options.sentTime || new Date()
this.addLocale(options.locale || 'en')
}
}

@Equals(MediationRequestMessage.type)
public readonly type = MediationRequestMessage.type
public static readonly type = 'https://didcomm.org/coordinate-mediation/1.0/mediate-request'

@Expose({ name: 'sent_time' })
@Type(() => Date)
@IsDate()
public sentTime!: Date
}

0 comments on commit 9ea748b

Please sign in to comment.