Skip to content

Commit

Permalink
feat(calls): add offer description and rename callStartType (#50)
Browse files Browse the repository at this point in the history
Signed-off-by: Ariel Gentile <gentilester@gmail.com>
  • Loading branch information
genaris authored Nov 27, 2024
1 parent b4398f1 commit 7b25a58
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/calls/src/messages/CallOfferMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ interface CallOfferMessageOptions {
id?: string
callType: DidCommCallType
offerExpirationTime?: Date
callStartTime?: Date
offerStartTime?: Date
description?: string
parameters: Record<string, unknown>
}

Expand All @@ -18,8 +19,9 @@ export class CallOfferMessage extends AgentMessage {
if (options) {
this.id = options.id ?? this.generateId()
this.callType = options.callType
this.description = options.description
this.offerExpirationTime = options.offerExpirationTime
this.callStartTime = options.callStartTime
this.offerStartTime = options.offerStartTime
this.parameters = options.parameters
}
}
Expand All @@ -29,7 +31,9 @@ export class CallOfferMessage extends AgentMessage {

public offerExpirationTime?: Date | null

public callStartTime?: Date | null
public offerStartTime?: Date | null

public description?: string

public parameters!: Record<string, unknown>

Expand Down

0 comments on commit 7b25a58

Please sign in to comment.