Botcraft 1.21.5
Loading...
Searching...
No Matches
ProtocolCraft::ServerLinksUnstrustedEntry Class Reference

#include <ServerLinksUnstrustedEntry.hpp>

Inheritance diagram for ProtocolCraft::ServerLinksUnstrustedEntry:
ProtocolCraft::NetworkType

Public Member Functions

auto & SetTypeId (const std::optional< int > &TypeId_)
 
auto & SetUri (const std::optional< Chat > &Uri_)
 
- Public Member Functions inherited from ProtocolCraft::NetworkType
virtual ~NetworkType ()
 
virtual void Read (ReadIterator &iter, size_t &length)
 
virtual void Write (WriteContainer &container) const
 
virtual Json::Value Serialize () const
 

Protected Member Functions

bool GetIsTypeId () const
 
- Protected Member Functions inherited from ProtocolCraft::NetworkType
virtual void ReadImpl (ReadIterator &iter, size_t &length)=0
 
virtual void WriteImpl (WriteContainer &container) const =0
 
virtual Json::Value SerializeImpl () const =0
 

Private Types

using THIS = ServerLinksUnstrustedEntry
 

Private Member Functions

 DEFINE_CONDITION (HasTypeId, GetIsTypeId())
 
 DEFINE_CONDITION (HasUri, !GetIsTypeId())
 
 SERIALIZED_FIELD_WITHOUT_GETTER_SETTER (IsTypeId, bool)
 
 SERIALIZED_FIELD_WITHOUT_GETTER_SETTER (TypeId, Internal::Conditioned< VarInt, &THIS::HasTypeId >)
 
 SERIALIZED_FIELD_WITHOUT_GETTER_SETTER (Uri, Internal::Conditioned< Chat, &THIS::HasUri >)
 
 SERIALIZED_FIELD_WITHOUT_GETTER_SETTER (Link, std::string)
 
 GETTER (TypeId)
 
 GETTER (Uri)
 
 GETTER_SETTER (Link)
 

Private Attributes

 DECLARE_READ_WRITE_SERIALIZE
 

Detailed Description

Definition at line 9 of file ServerLinksUnstrustedEntry.hpp.

Member Typedef Documentation

◆ THIS

Member Function Documentation

◆ DEFINE_CONDITION() [1/2]

ProtocolCraft::ServerLinksUnstrustedEntry::DEFINE_CONDITION ( HasTypeId  ,
GetIsTypeId()   
)
private

◆ DEFINE_CONDITION() [2/2]

ProtocolCraft::ServerLinksUnstrustedEntry::DEFINE_CONDITION ( HasUri  ,
GetIsTypeId() 
)
private

◆ GetIsTypeId()

bool ProtocolCraft::ServerLinksUnstrustedEntry::GetIsTypeId ( ) const
inlineprotected

Definition at line 28 of file ServerLinksUnstrustedEntry.hpp.

◆ GETTER() [1/2]

ProtocolCraft::ServerLinksUnstrustedEntry::GETTER ( TypeId  )
private

◆ GETTER() [2/2]

ProtocolCraft::ServerLinksUnstrustedEntry::GETTER ( Uri  )
private

◆ GETTER_SETTER()

ProtocolCraft::ServerLinksUnstrustedEntry::GETTER_SETTER ( Link  )
private

◆ SERIALIZED_FIELD_WITHOUT_GETTER_SETTER() [1/4]

ProtocolCraft::ServerLinksUnstrustedEntry::SERIALIZED_FIELD_WITHOUT_GETTER_SETTER ( IsTypeId  ,
bool   
)
private

◆ SERIALIZED_FIELD_WITHOUT_GETTER_SETTER() [2/4]

ProtocolCraft::ServerLinksUnstrustedEntry::SERIALIZED_FIELD_WITHOUT_GETTER_SETTER ( Link  ,
std::string   
)
private

◆ SERIALIZED_FIELD_WITHOUT_GETTER_SETTER() [3/4]

ProtocolCraft::ServerLinksUnstrustedEntry::SERIALIZED_FIELD_WITHOUT_GETTER_SETTER ( TypeId  ,
Internal::Conditioned< VarInt, &THIS::HasTypeId >   
)
private

◆ SERIALIZED_FIELD_WITHOUT_GETTER_SETTER() [4/4]

ProtocolCraft::ServerLinksUnstrustedEntry::SERIALIZED_FIELD_WITHOUT_GETTER_SETTER ( Uri  ,
Internal::Conditioned< Chat, &THIS::HasUri >   
)
private

◆ SetTypeId()

auto & ProtocolCraft::ServerLinksUnstrustedEntry::SetTypeId ( const std::optional< int > &  TypeId_)
inline

Definition at line 34 of file ServerLinksUnstrustedEntry.hpp.

◆ SetUri()

auto & ProtocolCraft::ServerLinksUnstrustedEntry::SetUri ( const std::optional< Chat > &  Uri_)
inline

Definition at line 45 of file ServerLinksUnstrustedEntry.hpp.

Member Data Documentation

◆ DECLARE_READ_WRITE_SERIALIZE

ProtocolCraft::ServerLinksUnstrustedEntry::DECLARE_READ_WRITE_SERIALIZE
private

Definition at line 21 of file ServerLinksUnstrustedEntry.hpp.


The documentation for this class was generated from the following file: