-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: PhoneCallHistory common structs
- Loading branch information
Showing
8 changed files
with
94 additions
and
23 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
src/Uno.UWP/ApplicationModel/Calls/PhoneCallHistoryEntry.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
|
||
namespace Windows.ApplicationModel.Calls | ||
{ | ||
// without this fields/methods PhoneCallHistoryEntry has no sense :) | ||
|
||
public partial class PhoneCallHistoryEntry | ||
{ | ||
public bool IsMissed { get; set; } | ||
|
||
public bool IsIncoming { get; set; } | ||
|
||
public TimeSpan? Duration { get; set; } | ||
|
||
public DateTimeOffset StartTime { get; set; } | ||
|
||
public PhoneCallHistoryEntryAddress Address { get; set; } | ||
|
||
public bool IsVoicemail { get; set; } | ||
|
||
public PhoneCallHistoryEntry() | ||
{ | ||
// constructor defined in UWP: https://docs.microsoft.com/en-us/uwp/api/Windows.ApplicationModel.Calls.PhoneCallHistoryEntry | ||
// nothing to do, but will be required in future to set SourceIdKind | ||
} | ||
|
||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/Uno.UWP/ApplicationModel/Calls/PhoneCallHistoryEntryAddress.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
namespace Windows.ApplicationModel.Calls | ||
{ | ||
public partial class PhoneCallHistoryEntryAddress | ||
{ | ||
// without this fields/methods PhoneCallHistoryEntryAddress has no sense :) | ||
|
||
public PhoneCallHistoryEntryRawAddressKind RawAddressKind { get; set; } | ||
|
||
public string RawAddress { get; set; } | ||
public string DisplayName { get; set; } | ||
|
||
public PhoneCallHistoryEntryAddress(string rawAddress, PhoneCallHistoryEntryRawAddressKind rawAddressKind) | ||
{ | ||
RawAddressKind = rawAddressKind; | ||
RawAddress = rawAddress; | ||
} | ||
public PhoneCallHistoryEntryAddress() | ||
{ | ||
RawAddressKind = PhoneCallHistoryEntryRawAddressKind.Custom; | ||
} | ||
|
||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/Uno.UWP/ApplicationModel/Calls/PhoneCallHistoryEntryRawAddressKind.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Windows.ApplicationModel.Calls | ||
{ | ||
public enum PhoneCallHistoryEntryRawAddressKind | ||
{ | ||
PhoneNumber, | ||
Custom, | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/Uno.UWP/ApplicationModel/Calls/PhoneCallHistoryStoreAccessType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace Windows.ApplicationModel.Calls | ||
{ | ||
public enum PhoneCallHistoryStoreAccessType | ||
{ | ||
// option without support - limited to app | ||
[global::Uno.NotImplemented] | ||
AppEntriesReadWrite, | ||
|
||
AllEntriesLimitedReadWrite = 1, | ||
AllEntriesReadWrite = 2 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters