-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Performance optimization for managing message creation events (writin…
…g, sending file).
- Loading branch information
Luis
committed
Nov 15, 2020
1 parent
121f6f4
commit 58e6606
Showing
12 changed files
with
814 additions
and
138 deletions.
There are no files selected for viewing
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
51 changes: 51 additions & 0 deletions
51
Khernet.UI/Khernet.UI.Presentation/Managers/MessageEvents.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,51 @@ | ||
using System; | ||
using System.Diagnostics; | ||
|
||
namespace Khernet.UI.Managers | ||
{ | ||
public enum MessageEvent | ||
{ | ||
/// <summary> | ||
/// Message is staring to be written. | ||
/// </summary> | ||
BeginWriting = 0, | ||
|
||
/// <summary> | ||
/// Message has finished written. | ||
/// </summary> | ||
EndWriting = 1, | ||
|
||
/// <summary> | ||
/// File is starting to be sent. | ||
/// </summary> | ||
BeginSendingFile = 2, | ||
|
||
/// <summary> | ||
/// File has finished sending. | ||
/// </summary> | ||
EndSendingFile = 3 | ||
} | ||
|
||
public class MessageEventData | ||
{ | ||
/// <summary> | ||
/// The type action that is being performing when creating a message. | ||
/// </summary> | ||
public MessageEvent EventType { get; set; } | ||
|
||
/// <summary> | ||
/// The peer that is creating the message. | ||
/// </summary> | ||
public string SenderPeer { get; set; } | ||
|
||
/// <summary> | ||
/// The peer that receive the event. | ||
/// </summary> | ||
public string ReceiverPeer { get; set; } | ||
|
||
/// <summary> | ||
/// The date when this event arrived to UI. | ||
/// </summary> | ||
public DateTime ArriveDate { get; set; } | ||
} | ||
} |
Oops, something went wrong.