Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

first commit #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions src/main/java/com/skyscanner/SearchResult.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
package com.skyscanner;

import com.fasterxml.jackson.annotation.JsonProperty;

public class SearchResult {

@JsonProperty
private String city;

@JsonProperty
private String kind;

@JsonProperty()
private String title;

public SearchResult() {}

public SearchResult(String city, String kind, String title) {
this.city = city;
this.kind = kind;
this.title = title;
}

public String getCity() {
return city;
}

public void setCity(String city) {
this.city = city;
}

public String getKind() {
return kind;
}

public void setKind(String kind) {
this.kind = kind;
}

public String getTitle() {
return title;
}

public void setTitle(String title) {
this.title = title;
}

public String getCity(){return city;}
public String getTitle(){return title;}
public String getKind(){return kind;}
}
26 changes: 26 additions & 0 deletions src/main/java/com/skyscanner/search.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package com.skyscanner;
import com.fasterxml.jackson.annotation.JsonProperty;

public class search {
@JsonProperty()
private String city;

public Search() {}

public Search(String city) {
this.city = city;
}

public String getCity() {
return city;
}

public void setCity(String city) {
this.city = city;
}



}