import Ġcom . learn . lock opens ystem . model . get result .* č Ċ import Ġcom . learn . lock opens ystem . model . post body .* č Ċ import Ġio . reactivex . Observable č Ċ import Ġretrofit 2 . http .* čĊč Ċ public Ġinterface ĠApi Ġ{ čĊĠĠĠ Ġ@ Form Url Encoded čĊĠĠĠ Ġ@ POST ("/ send code . asp ") čĊĠĠĠ Ġfun ĠSMS Auth (@ Field (" phon enum ") Ġph on enum : ĠString ): ĠObservable < Result > čĊčĊĠĠĠ Ġ@ Form Url Encoded čĊĠĠĠ Ġ@ POST ("/ register . asp ") čĊĠĠĠ Ġfun Ġregister (@ Field (" phon enum ") Ġph on enum : ĠString , čĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Field (" sms code ") Ġsms code : ĠString , čĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Field (" password ") Ġpassword : ĠString , čĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Field (" nickname ") Ġnickname : ĠString ): ĠObservable < Result > čĊčĊĠĠĠ Ġ@ Form Url Encoded čĊĠĠĠ Ġ@ POST ("/ reset pass . asp ") čĊĠĠĠ Ġfun Ġreset Password (@ Field (" phon enum ") Ġph on enum : ĠString , čĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Field (" sms code ") Ġsms code : ĠString , čĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Field (" password ") Ġpassword : ĠString ): ĠObservable < Result > čĊčĊĠĠĠ Ġ@ Form Url Encoded čĊĠĠĠ Ġ@ POST ("/ login . asp ") čĊĠĠĠ Ġfun Ġlogin (@ Field (" phon enum ") Ġph on enum : ĠString , Ġ@ Field (" password ") Ġpassword : ĠString ): ĠObservable < Oauth Result > čĊčĊĠĠĠ Ġ@ Form Url Encoded čĊĠĠĠ Ġ@ POST ("/ get userinfo . asp ") čĊĠĠĠ Ġfun ĠgetUser Info (@ Field (" token ") Ġtoken : ĠString ): ĠObservable < UserInfo > čĊčĊĠĠĠ Ġ@ Form Url Encoded čĊĠĠĠ Ġ@ POST ("/ logout . asp ") čĊĠĠĠ Ġfun Ġlogout (@ Field (" token ") Ġtoken : ĠString ): ĠObservable < Result > čĊčĊĠĠĠ Ġ@ Form Url Encoded čĊĠĠĠ Ġ@ POST ("/ get user lock . asp ") čĊĠĠĠ Ġfun Ġget user lock (@ Field (" token ") Ġtoken : ĠString ): ĠObservable < Lock Info > čĊčĊĠĠĠ Ġ@ Form Url Encoded čĊĠĠĠ Ġ@ POST ("/ del lock . asp ") čĊĠĠĠ Ġfun Ġdel Lock (@ Field (" token ") Ġtoken : ĠString , Ġ@ Field (" lock id ") Ġlock id : ĠString ): ĠObservable < Result > čĊčĊĠĠĠ Ġ@ Form Url Encoded čĊĠĠĠ Ġ@ POST ("/ change lock name . asp ") čĊĠĠĠ Ġfun Ġchange Lock Name ( čĊĠĠĠĠĠĠĠ Ġ@ Field (" token ") Ġtoken : ĠString , čĊĠĠĠĠĠĠĠ Ġ@ Field (" lock id ") Ġlock id : ĠString , čĊĠĠĠĠĠĠĠ Ġ@ Field (" lock name ") Ġlock name : ĠString čĊĠĠĠ Ġ): ĠObservable < Result > čĊčĊĠĠĠ Ġ@ Form Url Encoded čĊĠĠĠ Ġ@ POST ("/ lock open . asp ") čĊĠĠĠ Ġfun Ġlock Open (@ Field (" token ") Ġtoken : ĠString , Ġ@ Field (" lock id ") Ġlock id : ĠString ): ĠObservable < Result > čĊčĊĠĠĠ Ġ@ Form Url Encoded čĊĠĠĠ Ġ@ POST ("/ get lock open record . asp ") čĊĠĠĠ Ġfun Ġget Lock Open Record (@ Field (" token ") Ġtoken : ĠString , Ġ@ Field (" lock id ") Ġlock id : ĠString ): ĠObservable < Un Lock History > čĊčĊĠĠĠ Ġ@ Form Url Encoded čĊĠĠĠ Ġ@ POST ("/ get lock alarm . asp ") čĊĠĠĠ Ġfun Ġget Lock Alarm (@ Field (" token ") Ġtoken : ĠString , Ġ@ Field (" lock id ") Ġlock id : ĠString ): ĠObservable < Warning Info > čĊčĊĠĠĠ Ġ@ Form Url Encoded čĊĠĠĠ Ġ@ POST ("/ get new alarm . asp ") čĊĠĠĠ Ġfun Ġget New Alarm (@ Field (" token ") Ġtoken : ĠString ): ĠObservable < New Warning Info > čĊčĊĠĠĠ Ġ@ Form Url Encoded čĊĠĠĠ Ġ@ POST ("/ add lock . asp ") čĊĠĠĠ Ġfun Ġadd Lock (@ Field (" lock id ") Ġlock id : ĠString , Ġ@ Field (" lock pass ") Ġlock pass : ĠString , Ġ@ Field (" token ") Ġtoken : ĠString ): ĠObservable < Result > čĊč Ċ }