System.Tether.Manager.TTetheringCommand

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

  TTetheringCommand = record
  private
    FCommandType: TTetheringCommandType;
    FCommand: string;
    FParameters: TArray<string>;
    FData: TObject;
    FVersion: Integer;
  const
    CommandSep = '$';
    CommandsLength = 11;
    ParameterSep = '#';
  public
    constructor Create(const ACommand: string; AVersion: Integer; const AParameters: array of string; const AData: TObject = nil); overload;
    constructor Create(const ACommand: string; AVersion: Integer; const AParameters: TArray<string>; const AData: TObject = nil); overload;
    constructor Create(AType: TTetheringCommandType; const ACommand: string; AVersion: Integer;
      const AParameters: TArray<string> = nil; const AData: TObject = nil); overload;
    constructor Create(AType: TTetheringCommandType; const ACommand: string; AVersion: Integer;
      const AParameters: array of string; const AData: TObject = nil); overload;
    constructor Create(const ACommand: string; AVersion: Integer); overload;
    constructor Create(const RawData: TBytes); overload;
    function ToString: string;
    function ToBytes: TBytes;
    property CommandType: TTetheringCommandType read FCommandType;
    property Command: string read FCommand;
    property Data: TObject read FData;
    property Parameters: TArray<string> read FParameters;
    property Version: Integer read FVersion;
  end;

C++

struct DECLSPEC_DRECORD TTetheringCommand
{
private:
    TTetheringCommandType FCommandType;
    System::UnicodeString FCommand;
#ifndef _WIN64
    System::DynamicArray<System::UnicodeString> FParameters;
#else /* _WIN64 */
    System::TArray__1<System::UnicodeString> FParameters;
#endif /* _WIN64 */
    System::TObject* FData;
    int FVersion;
    static const System::WideChar CommandSep = (System::WideChar)(0x24);
    static const System::Int8 CommandsLength = System::Int8(0xb);
    static const System::WideChar ParameterSep = (System::WideChar)(0x23);
public:
    __fastcall TTetheringCommand(const System::UnicodeString ACommand, int AVersion, const System::UnicodeString *AParameters, const int AParameters_High, System::TObject* const AData)/* overload */;
#ifndef _WIN64
    __fastcall TTetheringCommand(const System::UnicodeString ACommand, int AVersion, const System::DynamicArray<System::UnicodeString> AParameters, System::TObject* const AData)/* overload */;
    __fastcall TTetheringCommand(TTetheringCommandType AType, const System::UnicodeString ACommand, int AVersion, const System::DynamicArray<System::UnicodeString> AParameters, System::TObject* const AData)/* overload */;
#else /* _WIN64 */
    __fastcall TTetheringCommand(const System::UnicodeString ACommand, int AVersion, const System::TArray__1<System::UnicodeString> AParameters, System::TObject* const AData)/* overload */;
    __fastcall TTetheringCommand(TTetheringCommandType AType, const System::UnicodeString ACommand, int AVersion, const System::TArray__1<System::UnicodeString> AParameters, System::TObject* const AData)/* overload */;
#endif /* _WIN64 */
    __fastcall TTetheringCommand(TTetheringCommandType AType, const System::UnicodeString ACommand, int AVersion, const System::UnicodeString *AParameters, const int AParameters_High, System::TObject* const AData)/* overload */;
    __fastcall TTetheringCommand(const System::UnicodeString ACommand, int AVersion)/* overload */;
#ifndef _WIN64
    __fastcall TTetheringCommand(const System::DynamicArray<System::Byte> RawData)/* overload */;
#else /* _WIN64 */
    __fastcall TTetheringCommand(const System::TArray__1<System::Byte> RawData)/* overload */;
#endif /* _WIN64 */
    System::UnicodeString __fastcall ToString();
#ifndef _WIN64
    System::DynamicArray<System::Byte> __fastcall ToBytes();
#else /* _WIN64 */
    System::TArray__1<System::Byte> __fastcall ToBytes();
#endif /* _WIN64 */
    __property TTetheringCommandType CommandType = {read=FCommandType};
    __property System::UnicodeString Command = {read=FCommand};
    __property System::TObject* Data = {read=FData};
#ifndef _WIN64
    __property System::DynamicArray<System::UnicodeString> Parameters = {read=FParameters};
#else /* _WIN64 */
    __property System::TArray__1<System::UnicodeString> Parameters = {read=FParameters};
#endif /* _WIN64 */
    __property int Version = {read=FVersion};
    TTetheringCommand() {}
};

Propriétés

Type Visibilité  Source Unité  Parent
record
struct
public
System.Tether.Manager.pas
System.Tether.Manager.hpp
System.Tether.Manager System.Tether.Manager


Description

Enregistrement qui représente une commande qu'une application peut envoyer à une autre via le tethering d'app.

Voir aussi