外卖平台类图
2020-12-09 16:43:52 3 举报
外卖平台类图
作者其他创作
大纲/内容
has
getTime
create new address
AddAddressActivity
+onCreate(Bundle):void
get Data
LoginViewModelFactory
+newIntent():Intent+createFragment():Fragment
getData
startActivity
LoginViewModel
-loginFormState:MutableLiveData<LoginFormState>-loginResult:MutableLiveData<LoginResult>
PHPAsyncTask
#doInBackground():boolean#onPostExecute(bool:Boolean):void
getAddress
readDBAsyncTask
+doInBackground():ItemCategories+onPostExecute():void
ShoppingFragment
+newInstance():ShoppingFragment+onCreate():void+onCreateView():View
ShoppingViewModel
-ItemCategories mItemCategories-ShoppingModelInterface mInterface
create
control
ItemCategories
-ItemCategories sItemCategories- ItemCategories sItemCategories()-SparseArray<Integer> mSectionPositionCache-SparseArray<Integer> mSectionCache-int mCount-int mSectionCount-List<ItemCategory> mItemCategoryList
showFragment
Item
-int mID-String mName-float mPrice-int mNumber-String mDescription
LoginFragment
+newInstance():LoginFragment+onCreateView():View-updateUiWithUser(name:String):void-showLoginFailed(errorString:Integer):void
produce
MainActivity
#createFragment():Fragment#createNavigationFragment():Fragment
<<interface>>onClickListener
shoppingListButtonClick(): voidshoppingTrolleyButtonClick(): voiduserInfoButtonClick(): void
Control
ItemCategory
-String mCategory-List<Item> mItems
createFragment
用户信息商品信息:直接在首页面加载时从云端读取订单信息:,时间例表,地址信息
DeliverTimePickerActivity
+newIntent(Context):Intent +onCreate(Bundle):void
OrderActivity
TimeList
TimeList sTimeListItemList<TimeItem> mList
+getInstance():TimeList+getCurrentTimeInfo():String-initialTimeList():void
MeunFragmentActivity
#createNavigationFragment():NavigationFragment#createView():View#getLayoutResId():int#onCreate():void#changeFragment():void-initPremission():void
OrderFragment
+newInstance():OrderFragment+onCreate():void+onCreateView():View
ItemInOrderList
+addItemInToOrderList():void+HasItem():boolean+IncreaseItemNumber(int):void+DecreaseItemNumber(int):void+DeleteItemFromList(int):void+ItemNumberEqual1(int):boolean+getItemNumber(int):int+getItemFromInteger(int):Item+addNumberInItem(int):boolean+subNumberInItem(int):boolean+getTotalPrice():float+getSize():int
<<interface>>ShoppingModelInterface
ChangeSectionColor():void
RegisterFragment
addItem
ItemList<T>
List<T> mListint currentIndex
+getCurrentItem():T+getItem(int):T+getSize():int+addItem(T):void
interface onClickListener
+newInstance():NavigationFragment+onCreate():void+onCreateView():View
AddressList
AddressList sAddressList
+getCurrentAddressInfo():String
LoginActivity
DBCHelper
获取云端数据
JsonOrder
将订单包装成json格式
changeFragment
0 条评论
下一页