Skip to content

Commit

Permalink
Redefine post details
Browse files Browse the repository at this point in the history
  • Loading branch information
MelSardes committed Sep 19, 2022
1 parent 8623a11 commit 86cef37
Show file tree
Hide file tree
Showing 45 changed files with 2,946 additions and 984 deletions.
17 changes: 17 additions & 0 deletions .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/render.experimental.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions app/src/main/java/com/sardes/thegabworkproject/data/Consts.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.sardes.thegabworkproject.data


const val COMPTES_STANDARD_REF = "ComptesStandard"
const val COMPTES_ENTREPRISE_REF = "ComptesEntreprise"
const val MESSAGES_REF = "Messages"
const val CONVERSATIONS_REF = "Conversations"
const val USERS_COLLECTION_REF = "Users"
const val POSTS_COLLECTION_REF = "Posts"
const val BOOKMARKS_REF = "Bookmarks"
const val APPLICATIONS_REF = "candidatures"
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,5 @@ data class CompteEntreprise(
val urlPhoto: String? = null,
val dateCandidature: Timestamp? = null,
)

// data class EtudiantCandidat(
// val PostEmploiId: String,
// val ProfilEtudiantId: String,
// val dateSoumission: String,
// )
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,83 +3,86 @@ package com.sardes.thegabworkproject.data.models
import com.google.firebase.Timestamp

data class CompteStandard(
val userId: String = "",
val email: String = "",
val userId: String? = null,
val email: String? = null,

val nom: String = "",
val prenom: String = "",
val sexe: String = "",
val nationalite: String = "",
val dateNaissance: String = "",
val nom: String? = null,
val prenom: String? = null,
val sexe: String? = null,
val nationalite: String? = null,
val dateNaissance: String? = null,

val telephone: String = "",
val ville: String = "",
val adresse: String = "",
val telephone: String? = null,
val ville: String? = null,
val adresse: String? = null,

val urlPhoto: String = "",
val urlPhoto: String? = null,

val dateCreationCompte: Timestamp = Timestamp.now(),
val typeDeCompte: String = "Standard",
){
data class JobBookmark(
val idBookmark: String = "",
val idPost: String = "",
val idEntreprise: String = "",
val nomEntreprise: String = "",
val urlLogoEntreprise: String = "",
val salaire: String = "",
val dateEnregistrement: Timestamp = Timestamp.now(),
val ville: String = "",
val province: String = "",
val typeDEmploi: String = "",
val postId: String? = null,
val entrepriseId: String? = null,
val postName: String? = null,
val entrepriseName: String? = null,
val urlLogo: String? = null,
val salary: String? = null,
val city: String? = null,
val province: String? = null,
val jobType: String? = null,
val saveDate: Timestamp = Timestamp.now(),
)

data class ServiceBookmark(
val idBookmark: String = "",
val idPost: String = "",
val idEntreprise: String = "",
val nomEntreprise: String = "",
val urlLogoEntreprise: String = "",
val salaire: String = "",
val idBookmark: String? = null,
val idPost: String? = null,
val idEntreprise: String? = null,
val nomEntreprise: String? = null,
val urlLogoEntreprise: String? = null,
val salaire: String? = null,
val dateEnregistrement: Timestamp = Timestamp.now(),
val ville: String = "",
val province: String = "",
val typeDEmploi: String = "",
val ville: String? = null,
val province: String? = null,
val typeDEmploi: String? = null,
)

data class InternshipBookmark(
val idBookmark: String = "",
val idPost: String = "",
val idEntreprise: String = "",
val nomEntreprise: String = "",
val urlLogoEntreprise: String = "",
// val status: String = "",
val salaire: String = "",
val idBookmark: String? = null,
val idPost: String? = null,
val idEntreprise: String? = null,
val nomEntreprise: String? = null,
val urlLogoEntreprise: String? = null,
// val status: String? = null,
val salaire: String? = null,
val dateEnregistrement: Timestamp = Timestamp.now(),
val ville: String = "",
val province: String = "",
val typeDEmploi: String = "",
val ville: String? = null,
val province: String? = null,
val typeDEmploi: String? = null,
)


data class Candidature(
val candidatureId: String = "",
val postId: String = "",
val postName: String = "",
val entrepriseId: String = "",
val entrepriseName: String = "",
val descriptionPost: String = "",
val salaire: String = "",
val ville: String = "",
val province: String = "",
val domaine: String = "",
val experience: String = "",
val typeDEmploi: String = "",
val adresse: String = "",
val dateCandidature: Timestamp = Timestamp.now(),
val dateLimite: Timestamp? = null,
val prerequis: String = "",
val status: String = ""
data class Application(
val postId: String? = null,
val postName: String? = null,
val entrepriseName: String? = null,
val urlLogoEntreprise: String? = null,
val salary: String? = null,
val city: String? = null,
val jobType: String? = null,
val applicationDate: Timestamp = Timestamp.now(),
val status: String? = null
)

data class JobProposal(
val postId: String? = null,
val postName: String? = null,
val entrepriseName: String? = null,
val urlLogoEntreprise: String? = null,
val salary: String? = null,
val city: String? = null,
val beginDate : String? = null,
val status: String? = null
)


Expand All @@ -91,18 +94,18 @@ data class NecessaryInformations(
val education: List<Education> = emptyList(),
val experience: List<Experience> = emptyList(),
val preferencesDEmploi: List<String> = emptyList(),
val urlCV: String? = ""
val urlCV: String? = null
)


data class InternshipNeededInformations(
val universiteActuelle: String = "",
val cycleActuel: String = "",
val filliereActuelle: String = ""
val universiteActuelle: String? = null,
val cycleActuel: String? = null,
val filliereActuelle: String? = null
)

data class SeekerNecessaryInformations(
val metier: String = ""
val metier: String? = null
)

data class ParcoursEtudiant(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ sealed class StandardPostScreen(val route: String){
object DetailsPostScreen: StandardPostScreen("StandardApplicationPost")
}

sealed class StandardMessageScreen(val route: String){
object StandardConversationScreen: StandardMessageScreen("standardInterface/standardMessages/Conversation")
sealed class StandardMessagesScreen(val route: String){
object StandardConversationScreen: StandardMessagesScreen("standardInterface/standardMessages/Conversation")
}


Expand All @@ -129,8 +129,8 @@ sealed class EntrepriseSearchScreen(val route: String) {
}

sealed class EntrepriseMessagesScreen(val route: String) {
object EntrepriseMessagesMain :
EntrepriseMessagesScreen("EntrepriseInterface/EntrepriseMessages/Main")
object EntrepriseConversationScreen :
EntrepriseMessagesScreen("EntrepriseInterface/EntrepriseMessages/Conversation")
}

sealed class EntreprisePostsScreen(val route: String) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.sardes.thegabworkproject.repository

class SearchRepository {
}
Loading

0 comments on commit 86cef37

Please sign in to comment.