Fix namespace problem for `PeerTypes` and `FileTypes` enums.

Signed-off-by: Aliwoto <aminnimaj@gmail.com>
This commit is contained in:
Aliwoto 2021-10-08 11:01:55 +00:00
parent 60c342ddbf
commit 40b4968a18
No known key found for this signature in database
GPG Key ID: 646B4FE4205EC48C
2 changed files with 71 additions and 65 deletions

View File

@ -16,38 +16,41 @@
* If not, see <http://www.gnu.org/licenses/>. * If not, see <http://www.gnu.org/licenses/>.
*/ */
/// <summary> namespace Socialvoid.SvObjects
/// File types indicate the content type of the file, if the server is
/// unable to determine the file type then it will default to DOCUMENT.
/// <code> Since: v0.0.0 </code>
/// </summary>
public enum FileTypes
{ {
//-------------------------------------------------
#region general types
/// <summary> /// <summary>
/// The default value of an <see cref="FileTypes"/>. /// File types indicate the content type of the file, if the server is
/// unable to determine the file type then it will default to DOCUMENT.
/// <code> Since: v0.0.0 </code> /// <code> Since: v0.0.0 </code>
/// </summary> /// </summary>
Document = 0, public enum FileTypes
#endregion {
//------------------------------------------------- //-------------------------------------------------
#region Another styling #region general types
/// <summary> /// <summary>
/// The file is an image file type. /// The default value of an <see cref="FileTypes"/>.
/// <code> Since: v0.0.0 </code> /// <code> Since: v0.0.0 </code>
/// </summary> /// </summary>
Photo = 1, Document = 0,
/// <summary> #endregion
/// The file is an video file type. //-------------------------------------------------
/// <code> Since: v0.0.0 </code> #region Another styling
/// </summary> /// <summary>
Video = 2, /// The file is an image file type.
/// <summary> /// <code> Since: v0.0.0 </code>
/// The file is an audio file type. /// </summary>
/// <code> Since: v0.0.0 </code> Photo = 1,
/// </summary> /// <summary>
Audio = 3, /// The file is an video file type.
#endregion /// <code> Since: v0.0.0 </code>
//------------------------------------------------- /// </summary>
} Video = 2,
/// <summary>
/// The file is an audio file type.
/// <code> Since: v0.0.0 </code>
/// </summary>
Audio = 3,
#endregion
//-------------------------------------------------
}
}

View File

@ -16,42 +16,45 @@
* If not, see <http://www.gnu.org/licenses/>. * If not, see <http://www.gnu.org/licenses/>.
*/ */
/// <summary> namespace Socialvoid.SvObjects
/// Peer Types indicates the account type that's registered to the server,
/// some actions may be restricted depending on the peer type.
/// <code> Since: v0.0.0 </code>
/// </summary>
public enum PeerTypes
{ {
//-------------------------------------------------
#region general types
/// <summary> /// <summary>
/// The default value of an <see cref="PeerTypes"/>, which means /// Peer Types indicates the account type that's registered to the server,
/// the peer type is undefined (or is unsupported by this version of /// some actions may be restricted depending on the peer type.
/// library).
/// In the case where our client received this type, we should show user
/// the "please update your client" message.
/// <code> Since: v0.0.0 </code> /// <code> Since: v0.0.0 </code>
/// </summary> /// </summary>
None = 0, public enum PeerTypes
#endregion {
//------------------------------------------------- //-------------------------------------------------
#region Another styling #region general types
/// <summary> /// <summary>
/// Normal user account. /// The default value of an <see cref="PeerTypes"/>, which means
/// <code> Since: v0.0.0 </code> /// the peer type is undefined (or is unsupported by this version of
/// </summary> /// library).
User = 1, /// In the case where our client received this type, we should show user
/// <summary> /// the "please update your client" message.
/// A bot account that performs automated actions on the network. /// <code> Since: v0.0.0 </code>
/// <code> Since: v0.0.0 </code> /// </summary>
/// </summary> None = 0,
Bot = 2, #endregion
/// <summary> //-------------------------------------------------
/// A proxy account that mirrors content from another platform. #region Another styling
/// <code> Since: v0.0.0 </code> /// <summary>
/// </summary> /// Normal user account.
Proxy = 3, /// <code> Since: v0.0.0 </code>
#endregion /// </summary>
//------------------------------------------------- User = 1,
/// <summary>
/// A bot account that performs automated actions on the network.
/// <code> Since: v0.0.0 </code>
/// </summary>
Bot = 2,
/// <summary>
/// A proxy account that mirrors content from another platform.
/// <code> Since: v0.0.0 </code>
/// </summary>
Proxy = 3,
#endregion
//-------------------------------------------------
}
} }