-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.sho.masegi.model | ||
|
||
import java.util.* | ||
|
||
typealias EventId = String | ||
|
||
data class Event( | ||
val id: EventId, | ||
val type: String, | ||
val actor: User, | ||
val repo: RepoLink, | ||
val createdAt: Date | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.sho.masegi.model | ||
|
||
import java.net.URL | ||
|
||
data class RepoLink( | ||
val id: RepositoryId, | ||
val name: String, | ||
val url: URL | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.sho.masegi.model | ||
|
||
import java.net.URL | ||
import java.util.Date | ||
|
||
typealias RepositoryId = Long | ||
|
||
data class Repository( | ||
val id: RepositoryId, | ||
val name: String, | ||
val fullName: String, | ||
val owner: User, | ||
val url: URL, | ||
val forksCount: Int, | ||
val openIssuesCount: Int, | ||
val watchersCount: Int, | ||
val stargazersCount: Int, | ||
val language: String?, | ||
val createdAt: Date, | ||
val updatedAt: Date, | ||
val `private`: Boolean, | ||
val description: String? | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
package com.sho.masegi.model | ||
|
||
import java.net.URL | ||
|
||
typealias UserId = Long | ||
|
||
data class User( | ||
val id: Int, | ||
val name: String | ||
val id: UserId, | ||
val login: String, | ||
val displayLogin: String?, | ||
val url: URL, | ||
val avatarUrl: URL | ||
) |