Package dd2480.group4.net
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
-
Field Details
-
repository
-
hashId
public java.lang.String hashId -
pusher
-
-
Constructor Details
-
PushEvent
public PushEvent()
-
-
Method Details
-
fromJson
- Parameters:
json
- the json file to read- Returns:
- a class representation of the json request.
- Throws:
java.io.IOException
- Fails to read the JSON.
-