Advertisement
Jefferson511

Untitled

Jan 23rd, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.78 KB | None | 0 0
  1. Interface
  2.     public interface ILog
  3.     {
  4.         ResultStatus ProcessAppLogging();
  5.     }
  6. Service
  7.  
  8.     public ResultStatus ProcessAppLogging(ILog objLog)
  9.     {
  10.  
  11.         return objLog.ProcessAppLogging();
  12.     }
  13. Model
  14.  
  15.     public class UserLog
  16.     {
  17.         public string CustomerId { get; set; }
  18.         public bool? IsMobile { get; set; }
  19.         public int? DeviceId { get; set; }
  20.  
  21.  public ResultStatus ProcessAppLogging()
  22.         {
  23.             return UsersDownload(this);
  24.         }
  25.     }
  26.     public class NonUserLog
  27.     {
  28.         public string DeviceId { get; set; }
  29.         public bool? IsMobile { get; set; }
  30.         public string AppType { get; set; }
  31.  public ResultStatus ProcessAppLogging()
  32.         {
  33.             return NonUsersDownload(this);
  34.         }
  35.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement