Skip to content

Commit

Permalink
CloudFileIdentity property added
Browse files Browse the repository at this point in the history
  • Loading branch information
Pozitronik authored and Pozitronik committed May 16, 2019
1 parent 7482b7c commit ea84f4c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion HashInfo.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

interface

uses system.sysutils, MRC_Helper;
uses system.sysutils, MRC_Helper, CMLTypes;

const
ERR_WRONG_FORMAT = 'Parameter should be in hash:size:name or hash:size format.';
Expand All @@ -12,12 +12,17 @@ interface
type

THashInfo = class
private
function GetCloudMailRuFileIdentity: TCloudMailRuFileIdentity;
public
hash: WideString;
size: int64;
name: WideString;
valid: boolean;
errorString: WideString;

property CloudFileIdentity: TCloudMailRuFileIdentity read GetCloudMailRuFileIdentity;

constructor Create(parameter: WideString; doClean: boolean = true);
destructor Destroy; override;

Expand Down Expand Up @@ -93,4 +98,10 @@ destructor THashInfo.Destroy;
inherited;
end;

function THashInfo.GetCloudMailRuFileIdentity: TCloudMailRuFileIdentity;
begin
result.hash := self.hash;
result.size := self.size;
end;

end.

0 comments on commit ea84f4c

Please sign in to comment.