-
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.
Merge pull request #12 from icanerdogan/appdevelopment
1.0.0
- Loading branch information
Showing
121 changed files
with
2,417 additions
and
98 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
17 changes: 17 additions & 0 deletions
17
app/src/main/java/com/ibrahimcanerdogan/valorantguideapp/data/database/weapon/WeaponDao.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.ibrahimcanerdogan.valorantguideapp.data.database.weapon | ||
|
||
import androidx.room.Dao | ||
import androidx.room.Insert | ||
import androidx.room.OnConflictStrategy | ||
import androidx.room.Query | ||
import com.ibrahimcanerdogan.valorantguideapp.data.model.weapon.WeaponData | ||
|
||
@Dao | ||
interface WeaponDao { | ||
|
||
@Insert(onConflict = OnConflictStrategy.REPLACE) | ||
suspend fun saveWeaponDatabase(agentList: List<WeaponData>) | ||
|
||
@Query("SELECT * FROM weapon_data") | ||
fun getWeaponListDatabase(): List<WeaponData> | ||
} |
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
app/src/main/java/com/ibrahimcanerdogan/valorantguideapp/data/model/weapon/Weapon.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.ibrahimcanerdogan.valorantguideapp.data.model.weapon | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class Weapon( | ||
@SerializedName("status") | ||
val status: Int, | ||
@SerializedName("data") | ||
val weapons: List<WeaponData> | ||
) |
33 changes: 33 additions & 0 deletions
33
app/src/main/java/com/ibrahimcanerdogan/valorantguideapp/data/model/weapon/WeaponData.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,33 @@ | ||
package com.ibrahimcanerdogan.valorantguideapp.data.model.weapon | ||
|
||
import androidx.room.Entity | ||
import androidx.room.PrimaryKey | ||
import com.google.gson.annotations.SerializedName | ||
import com.ibrahimcanerdogan.valorantguideapp.data.model.weapon.shop.WeaponShop | ||
import com.ibrahimcanerdogan.valorantguideapp.data.model.weapon.skin.WeaponSkin | ||
import com.ibrahimcanerdogan.valorantguideapp.data.model.weapon.stats.WeaponStat | ||
|
||
@Entity( | ||
tableName = "weapon_data" | ||
) | ||
data class WeaponData( | ||
@PrimaryKey | ||
@SerializedName("uuid") | ||
val uuid: String, | ||
@SerializedName("displayName") | ||
val weaponDisplayName: String, // Vandal | ||
@SerializedName("category") | ||
val weaponCategory: String, // EEquippableCategory::Rifle | ||
@SerializedName("defaultSkinUuid") | ||
val weaponDefaultSkinUuid: String, | ||
@SerializedName("displayIcon") | ||
val weaponDisplayIcon: String, // : https://media.valorant-api.com/weapons/9c82e19d-4575-0200-1a81-3eacf00cf872/displayicon.png | ||
@SerializedName("killStreamIcon") | ||
val weaponKillStreamIcon: String, | ||
@SerializedName("weaponStats") | ||
val weaponStats: WeaponStat?, // Weapon Damage & Other Stats | ||
@SerializedName("shopData") | ||
val weaponShop: WeaponShop?, | ||
@SerializedName("skins") | ||
val weaponSkins: List<WeaponSkin> | ||
) |
21 changes: 21 additions & 0 deletions
21
...src/main/java/com/ibrahimcanerdogan/valorantguideapp/data/model/weapon/shop/WeaponShop.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,21 @@ | ||
package com.ibrahimcanerdogan.valorantguideapp.data.model.weapon.shop | ||
|
||
import androidx.room.PrimaryKey | ||
import com.google.gson.annotations.SerializedName | ||
|
||
data class WeaponShop( | ||
@PrimaryKey(autoGenerate = true) | ||
val shopId : Int, | ||
@SerializedName("cost") | ||
val shopCost: Int, // 2900 | ||
@SerializedName("category") | ||
val shopCategory: String, // Rifles | ||
@SerializedName("categoryText") | ||
val shopCategoryText: String, // Assault Rifles | ||
@SerializedName("image") | ||
val shopImage: String?, | ||
@SerializedName("newImage") | ||
val shopNewImage: String?, | ||
@SerializedName("newImage2") | ||
val shopNewImage2: String? | ||
) |
20 changes: 20 additions & 0 deletions
20
...src/main/java/com/ibrahimcanerdogan/valorantguideapp/data/model/weapon/skin/SkinChroma.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,20 @@ | ||
package com.ibrahimcanerdogan.valorantguideapp.data.model.weapon.skin | ||
|
||
import androidx.room.PrimaryKey | ||
import com.google.gson.annotations.SerializedName | ||
|
||
data class SkinChroma( | ||
@PrimaryKey | ||
@SerializedName("uuid") | ||
val uuid: String, | ||
@SerializedName("displayName") | ||
val chromaDisplayName: String, // Araxys Bulldog Level 4\n(Variant 1 Purple) | ||
@SerializedName("displayIcon") | ||
val chromaDisplayIcon: String?, // null or same full render | ||
@SerializedName("fullRender") | ||
val chromaFullRender: String, // https://media.valorant-api.com/weaponskinchromas/49451aa7-4a30-3d0e-2cf9-a19afc966041/fullrender.png | ||
@SerializedName("swatch") | ||
val chromaSwatch: String?, | ||
@SerializedName("streamedVideo") | ||
val chromaStreamedVideo: String? | ||
) |
18 changes: 18 additions & 0 deletions
18
app/src/main/java/com/ibrahimcanerdogan/valorantguideapp/data/model/weapon/skin/SkinLevel.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,18 @@ | ||
package com.ibrahimcanerdogan.valorantguideapp.data.model.weapon.skin | ||
|
||
import androidx.room.PrimaryKey | ||
import com.google.gson.annotations.SerializedName | ||
|
||
data class SkinLevel( | ||
@PrimaryKey | ||
@SerializedName("uuid") | ||
val uuid: String, | ||
@SerializedName("displayName") | ||
val levelDisplayName: String, | ||
@SerializedName("levelItem") | ||
val levelItem: String?, | ||
@SerializedName("displayIcon") | ||
val levelDisplayIcon: String?, | ||
@SerializedName("streamedVideo") | ||
val levelStreamedVideo: String?, | ||
) |
Oops, something went wrong.