private Event GenerateRandomEvent(int i)
        {
            Event e = new Event(
                i,
                string.Format("Event #{0:d}", i),
                "Description",
                GenerateRandomDate(),
                GenerateRandomGroup(i)
                );

            return e;
        }
示例#2
0
 public bool Equals(Event other)
 {
     return
         this.Id == other.Id &&
         this.Title.Equals(other.Title) &&
         this.Date.Equals(other.Date) &&
         this.Description.Equals(other.Description) &&
         this.Group.Equals(other.Group);
 }
 /// <summary>
 /// Marks event as readed on server side
 /// </summary>
 /// <param name="api">Api instance used to make requests</param>
 /// <param name="readedEvent">Event object</param>
 public void MarkAsReaded(Event readedEvent)
 {
 }
 /// <summary>
 /// Accepts notification
 /// </summary>
 /// <param name="acceptedEvent">Event object</param>
 public void AcceptNotification(Event acceptedEvent)
 {
 }
 public void AcceptNotification(Event e)
 {
 }