Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
GET /apiv2/servicedmcore/CoreIdentity/3/
?fields=readonly_display_name,ci_given_name,ci_family_name,g_language

Example-Code

Code Block
languagec#
public class MyCoreIdentityDataContract
{
	public string ReadonlyDisplayName { get; set; }
	public AccessDeniedHandler<string> CiGivenName { get; set; }

	[JsonProperty("ci_family_name")]
	public AccessDeniedHandler<string> FamilyName { get; set; }

	[JsonProperty("g_language")]
	public AccessDeniedHandler<IDropDownAttributeValue<int>> Language { get; set; }
}

public async Task GetCoreIdentityById()
{
	var api = GetService<IApiV2Client>();
	var endpoint = api.DmcoreService.Servicedmcore.CoreIdentity;
	var item = await endpoint.GetByIdAsync<MyCoreIdentityDataContract>(3);
}

...

Code Block
GET /apiv2/servicedmcore/CoreIdentity/3/
?fields=readonly_display_name,ci_given_name,ci_family_name,g_language

Example-Code

Code Block
languagec#
public async Task GetCoreIdentityById()
{
	var api = GetService<IApiV2Client>();
	var endpoint = api.DmcoreService.Servicedmcore.CoreIdentity;
	var item = await endpoint.GetByIdAsync(3, new
	{
		ReadonlyDisplayName = string.Empty,
		CiGivenName = default(AccessDeniedHandler<string>),
		CiFamilyName = default(AccessDeniedHandler<string>),
		GLanguage = default(IDropDownAttributeValue<int>AccessDeniedHandler<IDropDownAttributeValue<int>>)
	});
}

Read list of objects via DataContract

...