Class PushEvent

java.lang.Object
dd2480.group4.net.PushEvent

public class PushEvent
extends java.lang.Object
Json classes to get information from request from GitHub
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  PushEvent.Owner
    The class represents the owner of the repository.
    static class  PushEvent.Pusher
    The class represents the pusher of the commit.
    static class  PushEvent.Repository
    The class represents the repository
  • Field Summary

    Fields 
    Modifier and Type Field Description
    java.lang.String hashId  
    PushEvent.Pusher pusher  
    PushEvent.Repository repository  
  • Constructor Summary

    Constructors 
    Constructor Description
    PushEvent()  
  • Method Summary

    Modifier and Type Method Description
    static PushEvent fromJson​(java.lang.String json)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • fromJson

      public static PushEvent fromJson​(java.lang.String json) throws java.io.IOException
      Parameters:
      json - the json file to read
      Returns:
      a class representation of the json request.
      Throws:
      java.io.IOException - Fails to read the JSON.