-
public class TapGameSave extends LCObject
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringCLASS_NAMEpublic final static StringGAME_SAVE_NAMEpublic final static StringGAME_SAVE_SUMMARYpublic final static StringGAME_SAVE_MODIFIED_ATpublic final static StringGAME_SAVE_PLAYED_TIMEpublic final static StringGAME_SAVE_PROGRESS_VALUEpublic final static StringGAME_SAVE_COVERpublic final static StringGAME_SAVE_GAME_FILEpublic final static StringGAME_SAVE_USERpublic final static StringGAME_SAVE_FILE_PREFIX
-
Constructor Summary
Constructors Constructor Description TapGameSave()default constructor
-
Method Summary
Modifier and Type Method Description voidsetName(String name)Set GameSave Name StringgetName()Get GameSave Name voidsetSummary(String description)Set a Summary for GameSave StringgetSummary()Get a Summary from GameSave voidsetModifiedAt(Date date)DategetModifiedAt()StringgetModifiedAtString()voidsetPlayedTime(double playedTime)doublegetPlayedTime()intgetProgressValue()voidsetProgressValue(int progressValue)Set GameSave progress voidsetCover(String filePath)Set a local file path to save the pictures of the current game save LCFilegetCover()voidsetGameFile(String filePath)Set the file path of a local game archive LCFilegetGameFile()Observable<TapGameSave>saveInBackground()Save GameSave by Current User static Observable<List<TapGameSave>>getCurrentUserGameSaves()Get GameSave by Current User static LCQuery<TapGameSave>getQuery()Constructor a LCQuery for GameSave static LCQuery<TapGameSave>getQueryWithUser()Constructor a LCQuery with CurrentUser for GameSave -
Methods inherited from class cn.leancloud.LCObject
abortOperations, add, addAll, addAllUnique, addUnique, bitAnd, bitOr, bitXor, containsKey, createWithoutData, createWithoutData, decrement, delete, deleteAll, deleteAllInBackground, deleteEventually, deleteInBackground, disableAfterHook, disableBeforeHook, equals, fetch, fetchIfNeeded, fetchIfNeededInBackground, fetchInBackground, get, getACL, getBoolean, getBytes, getClassName, getCreatedAt, getCreatedAtString, getDate, getDouble, getInt, getJSONArray, getJSONObject, getLCFile, getLCGeoPoint, getLCObject, getList, getLong, getNumber, getObjectId, getQuery, getRelation, getRequestMethod, getRequestRawEndpoint, getServerData, getString, getUpdatedAt, getUpdatedAtString, getUuid, has, hasCircleReference, hashCode, ignoreHook, increment, internalClassName, isDataAvailable, isFetchWhenSave, parseLCObject, put, refresh, refreshInBackground, registerSubclass, remove, removeAll, resetServerData, save, saveAll, saveAllInBackground, saveEventually, saveInBackground, setACL, setClassName, setFetchWhenSave, setObjectId, toJSONObject, toJSONString, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setSummary
void setSummary(String description)
Set a Summary for GameSave
- Parameters:
description- summary
-
getSummary
String getSummary()
Get a Summary from GameSave
-
setModifiedAt
void setModifiedAt(Date date)
-
getModifiedAt
Date getModifiedAt()
-
getModifiedAtString
String getModifiedAtString()
-
setPlayedTime
void setPlayedTime(double playedTime)
-
getPlayedTime
double getPlayedTime()
-
getProgressValue
int getProgressValue()
-
setProgressValue
void setProgressValue(int progressValue)
Set GameSave progress
- Parameters:
progressValue- game progress
-
setCover
void setCover(String filePath)
Set a local file path to save the pictures of the current game save
- Parameters:
filePath- local file path
-
getCover
LCFile getCover()
-
setGameFile
void setGameFile(String filePath)
Set the file path of a local game archive
- Parameters:
filePath- local file path
-
getGameFile
LCFile getGameFile()
-
saveInBackground
Observable<TapGameSave> saveInBackground()
Save GameSave by Current User
-
getCurrentUserGameSaves
static Observable<List<TapGameSave>> getCurrentUserGameSaves()
Get GameSave by Current User
-
getQuery
static LCQuery<TapGameSave> getQuery()
Constructor a LCQuery for GameSave
-
getQueryWithUser
static LCQuery<TapGameSave> getQueryWithUser()
Constructor a LCQuery with CurrentUser for GameSave
-
-
-
-