Skip to content

Commit

Permalink
Update UserContactPoint_s_List (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
tba76 authored Apr 24, 2024
1 parent 0b96880 commit 345aafd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public async Task<List<UserContactPoints>> GetUserContactPoints(List<string> nat
}

string responseContent = await response.Content.ReadAsStringAsync();
List<UserContactPoints>? contactPoints = JsonSerializer.Deserialize<UserContactPointsList>(responseContent, JsonSerializerOptionsProvider.Options)!.ContactPointList;
List<UserContactPoints>? contactPoints = JsonSerializer.Deserialize<UserContactPointsList>(responseContent, JsonSerializerOptionsProvider.Options)!.ContactPointsList;
return contactPoints!;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ public class UserContactPointsList
/// <summary>
/// A list containing contact points for users
/// </summary>
public List<UserContactPoints> ContactPointList { get; set; } = [];
public List<UserContactPoints> ContactPointsList { get; set; } = [];
}
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private Task<HttpResponseMessage> GetResponse<T>(UserContactPointLookup lookup)
}
else if (typeof(T) == typeof(UserContactPointsList))
{
return new UserContactPointsList() { ContactPointList = new List<UserContactPoints>() };
return new UserContactPointsList() { ContactPointsList = new List<UserContactPoints>() };
}

return null;
Expand All @@ -179,7 +179,7 @@ private Task<HttpResponseMessage> GetResponse<T>(UserContactPointLookup lookup)
new UserContactPoints() { NationalIdentityNumber = "01025101038", Email = string.Empty },
new UserContactPoints() { NationalIdentityNumber = "01025101037", Email = string.Empty }
};
return new UserContactPointsList() { ContactPointList = contactPointsList };
return new UserContactPointsList() { ContactPointsList = contactPointsList };
}

return null;
Expand Down

0 comments on commit 345aafd

Please sign in to comment.