public static final class

ChanConfiguration.Posting

extends Object
java.lang.Object
   ↳ chan.content.ChanConfiguration.Posting

Class Overview

Posting configuration holder.

See also:

Summary

Fields
public boolean allowEmail

Set true to enable emails.

public boolean allowName

Set true to enable names.

public boolean allowSubject

Set true to enable subjects.

public boolean allowTripcode

Set true to enable tripcodes.

public int attachmentCount

Maximum number of attachments.

public final Set<String> attachmentMimeTypes

Mime types of attachments.

public final List<Pair<String, String>> attachmentRatings

Attachment ratings.

public boolean attachmentSpoiler

Set true to enable spoiler option.

public boolean hasCountryFlags

Set true to enable notification that board has flags.

public int maxCommentLength

Maximum number of characters in comment.

public String maxCommentLengthEncoding

Characters encoding in comment.

public boolean optionOriginalPoster

Set true to enable original poster mark.

public boolean optionSage

Set true to enable sage mark.

public boolean optionSpoiler

Set true to enable spoiler mark.

public final List<Pair<String, String>> userIcons

User icons.

Public Constructors
ChanConfiguration.Posting()

Default constructor for ChanConfiguration.Posting.

[Expand]
Inherited Methods
From class java.lang.Object

Fields

public boolean allowEmail

Set true to enable emails. You will receive user's input from email

public boolean allowName

Set true to enable names. You will receive user's input from name

public boolean allowSubject

Set true to enable subjects. You will receive user's input from subject

public boolean allowTripcode

Set true to enable tripcodes. You will receive user's input from name

public int attachmentCount

Maximum number of attachments.

public final Set<String> attachmentMimeTypes

Mime types of attachments.

public final List<Pair<String, String>> attachmentRatings

Attachment ratings. The first field in pair is value, the second one is display name. You will receive user's selected value from rating. The first item in list will be selected by default.

public boolean attachmentSpoiler

Set true to enable spoiler option. You will receive user's choice from optionSpoiler.

public boolean hasCountryFlags

Set true to enable notification that board has flags.

public int maxCommentLength

Maximum number of characters in comment.

public String maxCommentLengthEncoding

Characters encoding in comment. Use this to make client count number of bytes in your encoding instead of number of chars.

public boolean optionOriginalPoster

Set true to enable original poster mark. You will receive user's choice from optionSage

public boolean optionSage

Set true to enable sage mark. You will receive user's choice from optionSage

public boolean optionSpoiler

Set true to enable spoiler mark. You will receive user's choice from optionSpoiler

public final List<Pair<String, String>> userIcons

User icons. The first field in pair is value, the second one is display name. You will receive user's selected value from userIcon.

Public Constructors

public ChanConfiguration.Posting ()

Default constructor for ChanConfiguration.Posting.