001 package com.google.gwt.maps.client.streetview; 002 003 004 /** 005 * The status returned by the StreetViewService on completion of a Street View request. 006 * <br><br> 007 * See <a href="https://developers.google.com/maps/documentation/javascript/reference#StreetViewStatus">StreetViewStatus API Doc</a> 008 */ 009 public enum StreetViewStatus { 010 011 /** 012 * The request was successful. 013 */ 014 OK, 015 016 /** 017 * The request could not be successfully processed, yet the exact reason for failure is unknown. 018 */ 019 UNKNOWN_ERROR, 020 021 /** 022 * There are no nearby panoramas. 023 */ 024 ZERO_RESULTS; 025 026 public String value() { 027 return name().toLowerCase(); 028 } 029 030 public static StreetViewStatus fromValue(String type) { 031 return valueOf(type.toUpperCase()); 032 } 033 034 public String toString() { 035 return name(); 036 } 037 038 }