Interfaces.cs
author Dean Looyengoed
Mon, 23 May 2016 21:25:14 +0200
changeset 910 9bd60ca2c6ac
parent 217 4f852e4e12d9
child 1444 2458d5d2d562
permissions -rw-r--r--
Add offline support (mostly for Exchange accounts).
Includes several other improvements found during the rewrite/restructuring.
     1 ´╗┐namespace pEp
     2 {
     3     /// <summary>
     4     /// Class to contain all interface definitions.
     5     /// </summary>
     6     internal static class Interfaces
     7     {
     8         /// <summary>
     9         /// Interface to support deep copy of objects.
    10         /// </summary>
    11         public interface ICopy<T>
    12         {
    13             /// <summary>
    14             /// Gets a deep copy of the object and all it's data.
    15             /// </summary>
    16             /// <returns>The deep copy of the object.</returns>
    17             T Copy(); 
    18         }
    19 
    20         /// <summary>
    21         /// Interface to support resetting an object to it's default state/values.
    22         /// </summary>
    23         public interface IReset
    24         {
    25             /// <summary>
    26             /// Resets the object to it's default state/values.
    27             /// </summary>
    28             void Reset();
    29         }
    30     }
    31 }