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.
37 lines
826 B
37 lines
826 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using FLocal.Common.dataobjects;
|
|
|
|
namespace FLocal.Common.URL.forum.board.thread.post {
|
|
public abstract class Abstract : thread.Abstract {
|
|
|
|
private static int extractPostId(string postId) {
|
|
return int.Parse(postId);
|
|
}
|
|
|
|
public readonly Post post;
|
|
|
|
public Abstract(int postId, string remainder)
|
|
: base(Post.LoadById(postId).threadId, remainder) {
|
|
this.post = Post.LoadById(postId);
|
|
}
|
|
public Abstract(string postId, string remainder) : this(extractPostId(postId), remainder) {
|
|
}
|
|
|
|
public override string title {
|
|
get {
|
|
return this.post.title;
|
|
}
|
|
}
|
|
|
|
protected override string _canonical {
|
|
get {
|
|
return base._canonical + "Post/" + post.id + "/";
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|