refactor(essentials): Switches from zoom specific contact class to generic InvitableDirectoryContact class

This commit is contained in:
Neil Dorin
2021-08-19 14:57:00 -06:00
parent b2331fa1e5
commit f922b871a1
3 changed files with 14 additions and 19 deletions

View File

@@ -160,7 +160,19 @@ namespace PepperDash.Essentials.Devices.Common.Codec
/// </summary>
public interface IInvitableContact
{
bool IsInvitableContact { get; }
}
public class InvitableDirectoryContact : DirectoryContact, IInvitableContact
{
[JsonProperty("isInvitableContact")]
public bool IsInvitableContact
{
get
{
return this is IInvitableContact;
}
}
}
/// <summary>
@@ -209,15 +221,6 @@ namespace PepperDash.Essentials.Devices.Common.Codec
[JsonProperty("title")]
public string Title { get; set; }
[JsonProperty("isInvitableContact")]
public bool IsInvitableContact
{
get
{
return this is IInvitableContact;
}
}
[JsonProperty("contactMethods")]
public List<ContactMethod> ContactMethods { get; set; }