-
public class TapGameSave extends LCObject
-
-
Field Summary
Fields Modifier and Type Field Description public final static String
CLASS_NAME
public final static String
GAME_SAVE_NAME
public final static String
GAME_SAVE_SUMMARY
public final static String
GAME_SAVE_MODIFIED_AT
public final static String
GAME_SAVE_PLAYED_TIME
public final static String
GAME_SAVE_PROGRESS_VALUE
public final static String
GAME_SAVE_COVER
public final static String
GAME_SAVE_GAME_FILE
public final static String
GAME_SAVE_USER
public final static String
GAME_SAVE_FILE_PREFIX
-
Constructor Summary
Constructors Constructor Description TapGameSave()
default constructor
-
Method Summary
Modifier and Type Method Description void
setName(String name)
Set GameSave Name String
getName()
Get GameSave Name void
setSummary(String description)
Set a Summary for GameSave String
getSummary()
Get a Summary from GameSave void
setModifiedAt(Date date)
Date
getModifiedAt()
String
getModifiedAtString()
void
setPlayedTime(double playedTime)
double
getPlayedTime()
int
getProgressValue()
void
setProgressValue(int progressValue)
Set GameSave progress void
setCover(String filePath)
Set a local file path to save the pictures of the current game save LCFile
getCover()
void
setGameFile(String filePath)
Set the file path of a local game archive LCFile
getGameFile()
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
-
-
-
-