From d9beeab2cda0274726e632a0cf9f081723684466 Mon Sep 17 00:00:00 2001 From: WarL0ck Date: Mon, 4 Dec 2017 22:59:44 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D0=B0=D0=BB=D0=B8=D0=B7=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D1=8F=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/encodings.xml | 6 +++ config.properties | 4 ++ .../ru/cft/task/restClient/EmailRecord.java | 42 +++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 .idea/encodings.xml create mode 100644 config.properties create mode 100644 src/main/java/ru/cft/task/restClient/EmailRecord.java diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..b26911b --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/config.properties b/config.properties new file mode 100644 index 0000000..e08a733 --- /dev/null +++ b/config.properties @@ -0,0 +1,4 @@ +#Rest server config +#Mon Dec 04 22:58:15 KRAT 2017 +port=8080 +url=http\://localhost diff --git a/src/main/java/ru/cft/task/restClient/EmailRecord.java b/src/main/java/ru/cft/task/restClient/EmailRecord.java new file mode 100644 index 0000000..32eda96 --- /dev/null +++ b/src/main/java/ru/cft/task/restClient/EmailRecord.java @@ -0,0 +1,42 @@ +package ru.cft.task.restClient; + +public class EmailRecord { + private long id; + private String name; + private String email; + + public EmailRecord(long id, String name, String email) { + this.id = id; + this.name = name; + this.email = email; + } + + public long getId() { + return id; + } + + public void setId(long id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + @Override + public String toString() { + return "Rec:" + name + "<" + email + ">"; + } +}