app / sg.edu.ntu.scse.cz2006.gymbuddies / AppConstants

AppConstants

interface AppConstants

Interface to provides application related constants For sg.edu.ntu.scse.cz2006.gymbuddies in Gym Buddies!

Author
Chia Yu

Since
2019-10-22

Properties

COLLECTION_CHAT

Firestore database collection key for chat

static val COLLECTION_CHAT: String

COLLECTION_FAV_BUDDY

Firestore database collection key for favbuddy

static val COLLECTION_FAV_BUDDY: String

COLLECTION_MESSAGES

Firestore database collection key for message

static val COLLECTION_MESSAGES: String

MAX_CACHE_DURATION

Valid max duration for image cache

static val MAX_CACHE_DURATION: Long

Inheritors

BuddyListFragment

The fragment display list of buddies (favoured user) of current user it allow user to view profile information, start chat and un-favour of user

open class BuddyListFragment : Fragment, AppConstants, OnRecyclerViewInteractedListener<ViewHolder!>

BuddySearchResultActivity

This is the display buddy search result it gets searching condition from Search buddies fragment, and perform query to Firestore After getting response, it display other users on Recycler view. User can then interact and add them as buddy

open class BuddySearchResultActivity : AppCompatActivity, AppConstants, OnRecyclerViewInteractedListener<ViewHolder!>

ChatActivity

The Activity displaying chat history between another user, and allows user to sent and receive message.

open class ChatActivity : AppCompatActivity, AppConstants, OnClickListener, OnRecyclerViewInteractedListener<ViewHolder!>

ChatListFragment

The fragment display list of buddies (favoured user) of current user it allow user to view profile information, start chat and un-favour of user

open class ChatListFragment : Fragment, AppConstants, OnRecyclerViewInteractedListener<ChatViewHolder!>

DiskIOHelper

DiskIOHelper provides the ability to cache bitmap into application's internal storage. it improves loading speed and reduce number of downloads to save user's data usage

open class DiskIOHelper : AppConstants