-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Perhaps we should actually use Object Oriented Programming... Create …
…separate subclasses for all homepage cells
- Loading branch information
Showing
14 changed files
with
112 additions
and
95 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 |
---|---|---|
|
@@ -192,4 +192,4 @@ class CampusExpressLoginFragment : Fragment() { | |
|
||
return stateString | ||
} | ||
} | ||
} |
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
8 changes: 8 additions & 0 deletions
8
PennMobile/src/main/java/com/pennapps/labs/pennmobile/classes/CalendarCell.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.pennapps.labs.pennmobile.classes | ||
|
||
data class CalendarCell(val events: List<CalendarEvent>) : HomeCell2() { | ||
init { | ||
type = "calendar" | ||
} | ||
} | ||
|
7 changes: 7 additions & 0 deletions
7
PennMobile/src/main/java/com/pennapps/labs/pennmobile/classes/DiningCell.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.pennapps.labs.pennmobile.classes | ||
|
||
data class DiningCell(val venues: List<Int>) : HomeCell2() { | ||
init { | ||
type = "dining" | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
PennMobile/src/main/java/com/pennapps/labs/pennmobile/classes/HomeCell2.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.pennapps.labs.pennmobile.classes | ||
|
||
open class HomeCell2 { | ||
var type : String? = null | ||
} |
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
7 changes: 7 additions & 0 deletions
7
PennMobile/src/main/java/com/pennapps/labs/pennmobile/classes/LaundryCell.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.pennapps.labs.pennmobile.classes | ||
|
||
data class LaundryCell(val roomId: Int) : HomeCell2() { | ||
init { | ||
type = "laundry" | ||
} | ||
} |
Oops, something went wrong.