From a4e8311cbd22588ecb4dc2fdbe05397b07d336f8 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Tue, 19 Jan 2021 17:57:15 +0100 Subject: [PATCH] Updated comments ref #104 --- src/models/actions/create/CreateGroupContact.ts | 8 ++++---- src/models/actions/update/UpdateGroupContact.ts | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/models/actions/create/CreateGroupContact.ts b/src/models/actions/create/CreateGroupContact.ts index 8d7e0bd..0775b2d 100644 --- a/src/models/actions/create/CreateGroupContact.ts +++ b/src/models/actions/create/CreateGroupContact.ts @@ -7,7 +7,7 @@ import { GroupContact } from '../../entities/GroupContact'; import { RunnerGroup } from '../../entities/RunnerGroup'; /** - * This classed is used to create a new Group entity from a json body (post request). + * This classed is used to create a new GroupContact entity from a json body (post request). */ export class CreateGroupContact { /** @@ -32,7 +32,7 @@ export class CreateGroupContact { lastname: string; /** - * The new participant's address. + * The new contact's address. */ @IsOptional() @IsObject() @@ -47,7 +47,7 @@ export class CreateGroupContact { phone?: string; /** - * The contact's email address. + * The new contact's email address. */ @IsOptional() @IsEmail() @@ -79,7 +79,7 @@ export class CreateGroupContact { } /** - * Creates a new Address entity from this. + * Creates a new GroupContact entity from this. */ public async toEntity(): Promise { let newContact: GroupContact = new GroupContact(); diff --git a/src/models/actions/update/UpdateGroupContact.ts b/src/models/actions/update/UpdateGroupContact.ts index 62d4149..9ec4418 100644 --- a/src/models/actions/update/UpdateGroupContact.ts +++ b/src/models/actions/update/UpdateGroupContact.ts @@ -6,8 +6,9 @@ import { Address } from '../../entities/Address'; import { GroupContact } from '../../entities/GroupContact'; import { RunnerGroup } from '../../entities/RunnerGroup'; + /** - * This classed is used to create a new Group entity from a json body (post request). + * This class is used to update a GroupContact entity (via put request). */ export class UpdateGroupContact { /**