Merge pull request 'Ajout IServices avec ServicesStub et ServicesApi' (#19) from service into master
Reviewed-on: #19pull/21/head
commit
5d5af2b1d8
@ -0,0 +1,16 @@
|
|||||||
|
package com.example.what_the_fantasy.data.services
|
||||||
|
|
||||||
|
interface IServices {
|
||||||
|
fun EditUsername(username : String)
|
||||||
|
fun EditEmail(email : String)
|
||||||
|
fun EditPasswd(passwd : String, passwdValid : String)
|
||||||
|
fun EditImage(imageURL : String)
|
||||||
|
|
||||||
|
fun CreateUser(username : String, email : String, passwd : String, imageURL: String)
|
||||||
|
fun getFavorite(username: String)
|
||||||
|
|
||||||
|
fun SearchQuote(quote : String)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,31 @@
|
|||||||
|
package com.example.what_the_fantasy.data.services
|
||||||
|
|
||||||
|
class ServicesAPI : IServices {
|
||||||
|
override fun EditUsername(username: String) {
|
||||||
|
TODO("Not yet implemented")
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun EditEmail(email: String) {
|
||||||
|
TODO("Not yet implemented")
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun EditPasswd(passwd: String, passwdValid: String) {
|
||||||
|
TODO("Not yet implemented")
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun EditImage(imageURL: String) {
|
||||||
|
TODO("Not yet implemented")
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun CreateUser(username: String, email: String, passwd: String, imageURL: String) {
|
||||||
|
TODO("Not yet implemented")
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun SearchQuote(quote: String) {
|
||||||
|
TODO("Not yet implemented")
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun getFavorite(username: String) {
|
||||||
|
TODO("Not yet implemented")
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,31 @@
|
|||||||
|
package com.example.what_the_fantasy.data.services
|
||||||
|
|
||||||
|
class ServicesStub : IServices {
|
||||||
|
override fun EditUsername(username: String) {
|
||||||
|
TODO("Not yet implemented")
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun EditEmail(email: String) {
|
||||||
|
TODO("Not yet implemented")
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun EditPasswd(passwd: String, passwdValid: String) {
|
||||||
|
TODO("Not yet implemented")
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun EditImage(imageURL: String) {
|
||||||
|
TODO("Not yet implemented")
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun CreateUser(username: String, email: String, passwd: String, imageURL: String) {
|
||||||
|
TODO("Not yet implemented")
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun SearchQuote(quote: String) {
|
||||||
|
TODO("Not yet implemented")
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun getFavorite(username: String) {
|
||||||
|
TODO("Not yet implemented")
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue