An alternative to UBB.threads
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
FLocal/Common/dataobjects/IUserSettings.cs

45 lines
871 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
namespace FLocal.Common.dataobjects {
public interface IUserSettings {
int threadsPerPage {
get;
}
int postsPerPage {
get;
}
int uploadsPerPage {
get;
}
int usersPerPage {
get;
}
Skin skin {
get;
}
}
public static class IUserSettings_Extension {
public static XElement exportToXml(this IUserSettings settings, UserContext context) {
return new XElement("settings",
new XElement("postsPerPage", settings.postsPerPage),
new XElement("threadsPerPage", settings.threadsPerPage),
new XElement("usersPerPage", settings.usersPerPage),
new XElement("uploadsPerPage", settings.uploadsPerPage),
new XElement("skinId", settings.skin.id)
);
}
}
}