mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-16 08:15:53 +01:00
80a0bc8f8c
ObjectMappers DataSetToObject support boolean types Sample\SoapRest Example application server providing both SOAP and REST webservices
49 lines
952 B
ObjectPascal
49 lines
952 B
ObjectPascal
unit BOCustomersU;
|
|
|
|
interface
|
|
|
|
uses ObjectsMappers, System.Generics.Collections;
|
|
|
|
type
|
|
|
|
[MapperJSONNaming(JSONNameLowerCase)]
|
|
TCustomer = class
|
|
private
|
|
FSurname: string;
|
|
FMiddleName: string;
|
|
FFirstName: string;
|
|
procedure SetFirstName(const Value: string);
|
|
procedure SetMiddleName(const Value: string);
|
|
procedure SetSurname(const Value: string);
|
|
public
|
|
published
|
|
property FirstName: string read FFirstName write SetFirstName;
|
|
property MiddleName: string read FMiddleName write SetMiddleName;
|
|
property Surname: string read FSurname write SetSurname;
|
|
|
|
end;
|
|
|
|
type
|
|
TCustomers = TObjectList<TCustomer>;
|
|
|
|
implementation
|
|
|
|
{ TCustomer }
|
|
|
|
procedure TCustomer.SetFirstName(const Value: string);
|
|
begin
|
|
FFirstName := Value;
|
|
end;
|
|
|
|
procedure TCustomer.SetMiddleName(const Value: string);
|
|
begin
|
|
FMiddleName := Value;
|
|
end;
|
|
|
|
procedure TCustomer.SetSurname(const Value: string);
|
|
begin
|
|
FSurname := Value;
|
|
end;
|
|
|
|
end.
|