Skip to content

Commit

Permalink
Enrollment Checkin: receive SMSOptedIn (still unused)
Browse files Browse the repository at this point in the history
The API will now accept the SMSOptedIn field in the checkIn/cellphone endpoint. However, the field is not used or stored anywhere.
  • Loading branch information
EjPlatzer committed Sep 19, 2024
1 parent d15ebe0 commit e438d58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Gordon360/Models/ViewModels/MobilePhoneUpdateViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
namespace Gordon360.Models.ViewModels;

public sealed record MobilePhoneUpdateViewModel(string PersonalPhone, bool MakePrivate);
public sealed record MobilePhoneUpdateViewModel(string PersonalPhone, bool MakePrivate, bool SMSOptedIn = false);
2 changes: 2 additions & 0 deletions Gordon360/Services/AcademicCheckInService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ private static string CreateNotesValue(string MobilePhone, string HomePhone)
/// <returns> The stored data </returns>
public async Task PutCellPhoneAsync(string id, MobilePhoneUpdateViewModel data)
{
// TODO: Store SMS Consent value somewhere

var result = await context.Procedures.FINALIZATION_UPDATECELLPHONEAsync(id, FormatNumber(data.PersonalPhone), data.MakePrivate, NoneProvided: false);
if (result == null || result.Any(r => r.Success != true))
{
Expand Down

0 comments on commit e438d58

Please sign in to comment.