public SteamGetPreFileListProcess(GetPreListCallBackEventHandler callBackGetPreListResult, uint startIndex, string [] tags, uint days = 0, uint count = 9, EWorkshopEnumerationType orderBy = EWorkshopEnumerationType.k_EWorkshopEnumerationTypeRankedByVote) { RemoteStorageEnumerateWorkshopFilesResult = CallResult <RemoteStorageEnumerateWorkshopFilesResult_t> .Create(OnRemoteStorageEnumerateWorkshopFilesResultAllUser); CallBackGetPreListResult = callBackGetPreListResult; tags = SteamWorkShop.AddNewVersionTag(tags); GetPreFileList(startIndex, tags, days, count, orderBy); _StartIndex = startIndex; }
public SteamGetMyPreListProcess(GetPreListCallBackEventHandler callBackGetPreListResult, uint startIndex, string [] tags, uint count = 9) { remoteStorageEnumerateUserSharedWorkshopFilesResult = CallResult <RemoteStorageEnumerateUserSharedWorkshopFilesResult_t> .Create(OnRemoteStorageEnumerateUserSharedWorkshopFilesResultMyPreFileList); CallBackGetPreListResult = callBackGetPreListResult; //tags = SteamWorkShop.AddNewVersionTag(tags); GetMyPreFileList(startIndex, tags); _StartIndex = startIndex; _Count = count; }
public SteamSearchProcess(GetPreListCallBackEventHandler callBackGetPreListResult, uint startIndex, string [] tags, uint count = 9, string searchText = "") { OnSteamUGCQueryCompletedCallResult = CallResult <SteamUGCQueryCompleted_t> .Create(CallBackSendQuery); _Page = startIndex / 50 + 1; _StartIndex = startIndex; CallBackGetPreListResult = callBackGetPreListResult; _Count = count; tags = SteamWorkShop.AddNewVersionTag(tags); Search(tags, searchText); }
public void GetMyPreFileList(GetPreListCallBackEventHandler callBackGetPreListResult, uint startIndex, string [] tags, uint days = 0, uint count = 9, EWorkshopEnumerationType orderBy = EWorkshopEnumerationType.k_EWorkshopEnumerationTypeRankedByVote, string searchText = "") { if (searchText.CompareTo("") == 0) { SteamGetMyPreListProcess item = new SteamGetMyPreListProcess(callBackGetPreListResult, startIndex, tags, count); ProcessList.Add(item); } else { SteamSearchMyProcess item = new SteamSearchMyProcess(callBackGetPreListResult, startIndex, tags, count, searchText); ProcessList.Add(item); } }