Esempio n. 1
0
        public static String getNameOfAttributes()
        {
            StringBuilder builder = new StringBuilder();

            builder.Append("Id");
            builder.Append(";");
            builder.Append("Place Name");
            builder.Append(";");
            builder.Append(Geometry.getNameOfAttributes());
            builder.Append("Icon");
            builder.Append(";");
            builder.Append(OpeningHours.getNameOfAttributes());
            builder.Append(Photo.getNameOfAttributes());
            builder.Append(";");
            builder.Append("Rating");
            builder.Append(";");
            builder.Append("Reference");
            builder.Append(";");
            builder.Append("Scope");
            builder.Append(";");
            builder.Append("type");
            builder.Append(";");
            builder.Append("Vicinity");
            builder.Append(";");
            builder.Append("Website");
            builder.Append(";");
            return(builder.ToString());
        }
Esempio n. 2
0
        public override String ToString()
        {
            StringBuilder builder = new StringBuilder();

            builder.Append(Id);
            builder.Append(";");
            builder.Append(Name);
            builder.Append(";");
            if (Geometry != null)
            {
                builder.Append(Geometry.ToString());
            }
            else
            {
                builder.Append(Geometry.printNull());
            }
            builder.Append(Icon);
            builder.Append(";");
            if (Opening_hours != null)
            {
                builder.Append(Opening_hours.ToString());
            }
            else
            {
                builder.Append(OpeningHours.printNull());
            }
            builder.Append("[");
            if (Photos != null)
            {
                foreach (Photo photo in Photos)
                {
                    builder.Append(photo.ToString());
                    builder.Append(",");
                }
            }
            builder.Append("]");
            builder.Append(";");
            builder.Append(Place_id);
            builder.Append(";");
            builder.Append(Rating);
            builder.Append(";");
            builder.Append(Reference);
            builder.Append(";");
            builder.Append(Scope);
            builder.Append(";");
            builder.Append("[");
            if (Types != null)
            {
                foreach (String type in Types)
                {
                    builder.Append(type);
                    builder.Append(",");
                }
            }
            builder.Append("]");
            builder.Append(";");
            builder.Append(Vicinity);
            builder.Append(";");
            builder.Append(Website);
            builder.Append(";");
            return(builder.ToString());
        }