-
Notifications
You must be signed in to change notification settings - Fork 102
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
18 changed files
with
137 additions
and
6 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
10 changes: 10 additions & 0 deletions
10
samples/petfinder/src/main/java/com/squareup/sample/petfinder/domain/Address.kt
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,10 @@ | ||
package com.squareup.sample.petfinder.domain | ||
|
||
data class Address ( | ||
val address1: Any? = null, | ||
val address2: Any? = null, | ||
val city: String, | ||
val state: String, | ||
val postcode: String, | ||
val country: String | ||
) |
6 changes: 6 additions & 0 deletions
6
samples/petfinder/src/main/java/com/squareup/sample/petfinder/domain/Adoption.kt
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,6 @@ | ||
package com.squareup.sample.petfinder.domain | ||
|
||
data class Adoption ( | ||
val policy: String? = null, | ||
val url: String? = null | ||
) |
26 changes: 26 additions & 0 deletions
26
samples/petfinder/src/main/java/com/squareup/sample/petfinder/domain/Animal.kt
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,26 @@ | ||
package com.squareup.sample.petfinder.domain | ||
|
||
data class Animal ( | ||
val id: Long, | ||
val organizationId: String, | ||
val url: String, | ||
val type: String, | ||
val species: String, | ||
val breeds: Breeds, | ||
val colors: Colors, | ||
val age: String, | ||
val gender: String, | ||
val size: String, | ||
val coat: String, | ||
val name: String, | ||
val description: String, | ||
val photos: List<Photo>, | ||
val videos: List<Video>, | ||
val status: String, | ||
val attributes: Attributes, | ||
val environment: Environment, | ||
val tags: List<String>, | ||
val contact: Contact, | ||
val publishedAt: String, | ||
val distance: Double, | ||
) |
9 changes: 9 additions & 0 deletions
9
samples/petfinder/src/main/java/com/squareup/sample/petfinder/domain/Attributes.kt
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.squareup.sample.petfinder.domain | ||
|
||
data class Attributes ( | ||
val spayedNeutered: Boolean, | ||
val houseTrained: Boolean, | ||
val declawed: Boolean, | ||
val specialNeeds: Boolean, | ||
val shotsCurrent: Boolean | ||
) |
8 changes: 8 additions & 0 deletions
8
samples/petfinder/src/main/java/com/squareup/sample/petfinder/domain/Breeds.kt
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,8 @@ | ||
package com.squareup.sample.petfinder.domain | ||
|
||
data class Breeds ( | ||
val primary: String, | ||
val secondary: Any? = null, | ||
val mixed: Boolean, | ||
val unknown: Boolean | ||
) |
7 changes: 7 additions & 0 deletions
7
samples/petfinder/src/main/java/com/squareup/sample/petfinder/domain/Colors.kt
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,7 @@ | ||
package com.squareup.sample.petfinder.domain | ||
|
||
data class Colors ( | ||
val primary: String, | ||
val secondary: Any? = null, | ||
val tertiary: Any? = null | ||
) |
7 changes: 7 additions & 0 deletions
7
samples/petfinder/src/main/java/com/squareup/sample/petfinder/domain/Contact.kt
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,7 @@ | ||
package com.squareup.sample.petfinder.domain | ||
|
||
data class Contact ( | ||
val email: String, | ||
val phone: String, | ||
val address: Address | ||
) |
7 changes: 7 additions & 0 deletions
7
samples/petfinder/src/main/java/com/squareup/sample/petfinder/domain/Environment.kt
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,7 @@ | ||
package com.squareup.sample.petfinder.domain | ||
|
||
data class Environment ( | ||
val children: Boolean, | ||
val dogs: Boolean, | ||
val cats: Boolean | ||
) |
11 changes: 11 additions & 0 deletions
11
samples/petfinder/src/main/java/com/squareup/sample/petfinder/domain/Hours.kt
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,11 @@ | ||
package com.squareup.sample.petfinder.domain | ||
|
||
data class Hours ( | ||
val monday: String? = null, | ||
val tuesday: String? = null, | ||
val wednesday: String? = null, | ||
val thursday: String? = null, | ||
val friday: String? = null, | ||
val saturday: String? = null, | ||
val sunday: String? = null | ||
) |
17 changes: 17 additions & 0 deletions
17
samples/petfinder/src/main/java/com/squareup/sample/petfinder/domain/Organization.kt
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,17 @@ | ||
package com.squareup.sample.petfinder.domain | ||
|
||
data class Organization ( | ||
val id: String, | ||
val name: String, | ||
val email: String, | ||
val phone: String, | ||
val address: Address, | ||
val hours: Hours, | ||
val url: String, | ||
val website: String? = null, | ||
val missionStatement: Any? = null, | ||
val adoption: Adoption, | ||
val socialMedia: SocialMedia, | ||
val photos: List<Photo>, | ||
val distance: Double, | ||
) |
8 changes: 8 additions & 0 deletions
8
samples/petfinder/src/main/java/com/squareup/sample/petfinder/domain/Photo.kt
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,8 @@ | ||
package com.squareup.sample.petfinder.domain | ||
|
||
data class Photo ( | ||
val small: String, | ||
val medium: String, | ||
val large: String, | ||
val full: String | ||
) |
9 changes: 9 additions & 0 deletions
9
samples/petfinder/src/main/java/com/squareup/sample/petfinder/domain/SocialMedia.kt
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.squareup.sample.petfinder.domain | ||
|
||
data class SocialMedia ( | ||
val facebook: String? = null, | ||
val twitter: String? = null, | ||
val youtube: String? = null, | ||
val instagram: String? = null, | ||
val pinterest: String? = null | ||
) |
5 changes: 5 additions & 0 deletions
5
samples/petfinder/src/main/java/com/squareup/sample/petfinder/domain/Video.kt
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,5 @@ | ||
package com.squareup.sample.petfinder.domain | ||
|
||
data class Video ( | ||
val embed: 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
2 changes: 1 addition & 1 deletion
2
...uareup/sample/petfinder/ui/theme/Theme.kt → .../squareup/sample/petfinder/theme/Theme.kt
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
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
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