Skip to content

Commit

Permalink
Merge pull request #1678 from poorva1209/cim-profile
Browse files Browse the repository at this point in the history
added tostring methods to switch and secondary areas for distributed api
  • Loading branch information
poorva1209 authored Nov 22, 2022
2 parents 558a68c + 4836490 commit 6388b26
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import java.io.Serializable;
import java.util.ArrayList;

import com.google.gson.Gson;

public class SecondaryArea implements Serializable{

private static final long serialVersionUID = 1L;
Expand All @@ -13,4 +15,10 @@ public class SecondaryArea implements Serializable{
public ArrayList<String> connectivity_node;
public String message_bus_id;

@Override
public String toString() {
Gson gson = new Gson();
return gson.toJson(this);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import java.io.Serializable;
import java.util.ArrayList;

import com.google.gson.Gson;

public class SwitchArea implements Serializable {

private static final long serialVersionUID = 1L;
Expand All @@ -13,5 +15,11 @@ public class SwitchArea implements Serializable {
public ArrayList<SecondaryArea> secondary_areas;
public ArrayList<String> connectivity_node;
public String message_bus_id;

@Override
public String toString() {
Gson gson = new Gson();
return gson.toJson(this);
}

}

0 comments on commit 6388b26

Please sign in to comment.