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 classPushEvent.OwnerThe class represents the owner of the repository.static classPushEvent.PusherThe class represents the pusher of the commit.static classPushEvent.RepositoryThe class represents the repository -
Field Summary
Fields Modifier and Type Field Description java.lang.StringhashIdPushEvent.PusherpusherPushEvent.Repositoryrepository -
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.
-