public static UserLocation GetDefaultLocation(UserLocationType locType, LocalUser owner) { UserLocation ul = new UserLocation(); if (locType == VBulletinBot.UserLocationType.FORUM) { ul.PerPage = 5; ul.PageNumber = 1; ul.Title = @"INDEX"; ul.LocationRemoteID = -1; ul.List = string.Empty; ul.UserLocationType = @"forum"; ul.LocalUserID = owner.LocalUserID; } else if (locType == VBulletinBot.UserLocationType.THREAD) { ul.PerPage = 5; ul.PageNumber = 1; ul.Title = string.Empty; ul.LocationRemoteID = 0; ul.List = string.Empty; ul.UserLocationType = @"thread"; ul.LocalUserID = owner.LocalUserID; } else if (locType == VBulletinBot.UserLocationType.POST) { ul.PerPage = 5; ul.PageNumber = 1; ul.Title = string.Empty; ul.LocationRemoteID = 0; ul.List = string.Empty; ul.UserLocationType = @"post"; ul.LocalUserID = owner.LocalUserID; } return ul; }
public void SetUserLocationType(UserLocation ut) { UserLocationType = ut.ToString(); }
partial void UpdateUserLocation(UserLocation instance);
partial void DeleteUserLocation(UserLocation instance);
partial void InsertUserLocation(UserLocation instance);