예제 #1
0
        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;
        }
예제 #2
0
 public void SetUserLocationType(UserLocation ut)
 {
     UserLocationType = ut.ToString();
 }
예제 #3
0
 partial void UpdateUserLocation(UserLocation instance);
예제 #4
0
 partial void DeleteUserLocation(UserLocation instance);
예제 #5
0
 partial void InsertUserLocation(UserLocation instance);