Advertisement
Guest User

Untitled

a guest
Apr 1st, 2020
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.89 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace LifeLog
  8. {
  9.     class EventTypes
  10.     {
  11.         string EventID;
  12.         int locationX;
  13.         int locationY;
  14.         string dateTimeStamp;
  15.  
  16.         public EventTypes()
  17.         {
  18.             EventID = "";
  19.             locationX = 0;
  20.             locationY = 0;
  21.             dateTimeStamp = "";
  22.         }
  23.  
  24.         public EventTypes(string EventID, int locationX, int locationY, string dateTimeStamp)
  25.         {
  26.             this.EventID = EventID;
  27.             this.locationX = locationX;
  28.             this.locationY = locationY;
  29.             this.dateTimeStamp = dateTimeStamp; ;
  30.         }
  31.  
  32.         public string GetEventID()
  33.         {
  34.             return EventID;
  35.         }
  36.  
  37.         public void SetEventID(string EventID)
  38.         {
  39.             this.EventID = EventID;
  40.         }
  41.  
  42.         public int GetLocationX()
  43.         {
  44.             return locationX;
  45.         }
  46.  
  47.         public void SetLocationX(int locationX)
  48.         {
  49.             this.locationX = locationX;
  50.         }
  51.  
  52.         public int GetLocationY()
  53.         {
  54.             return locationY;
  55.         }
  56.  
  57.         public void SetLocationY(int locationY)
  58.         {
  59.             this.locationY = locationY;
  60.         }
  61.  
  62.         public string GetDateTimeStamp()
  63.         {
  64.             return dateTimeStamp;
  65.         }
  66.  
  67.         public void SetDateTimeStamp(string dateTimeStamp)
  68.         {
  69.             this.dateTimeStamp = dateTimeStamp;
  70.         }
  71.  
  72.         class Tweet : EventTypes
  73.         {
  74.             string EventType = "tweet";
  75.             string text;
  76.  
  77.             public Tweet()
  78.             {
  79.                 EventID = "";
  80.                 locationX = 0;
  81.                 locationY = 0;
  82.                 dateTimeStamp = "";
  83.                 text = "";
  84.             }
  85.         }
  86.     }
  87.  
  88. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement