void Awake()
 {
     messagePopupView = FindObjectOfType <MessagePopupView>();
     cancelButton.onClick.AddListener(HideExpandPanel);
     hideButton.onClick.AddListener(HideExpandPanel);
     removeButton.onClick.AddListener(RemoveApi);
     openExpandPanel.onClick.AddListener(OpenExpandpanel);
 }
예제 #2
0
 void Awake()
 {
     messagePopupView = FindObjectOfType <MessagePopupView>();
     cancelButton.onClick.AddListener(HideExpandPanel);
     hideButton.onClick.AddListener(HideExpandPanel);
     addButton.onClick.AddListener(AddApi);
     openExpandPanel.onClick.AddListener(OpenExpandpanel);
     input.text = string.Empty;
 }
예제 #3
0
 public override void Awake()
 {
     base.Awake();
     messagePopupView = FindObjectOfType <MessagePopupView>();
     settingApiAddController.OnExpandPanelOpen    += ChangeState;
     settingApiRemoveController.OnExpandPanelOpen += ChangeState;
     settingApiAddController.OnApiAdded           += InitDropdown;
     settingApiRemoveController.OnApiRemoved      += InitDropdown;
 }
예제 #4
0
 public EditarPerfilViewModel()
 {
     loadDataHandler = new LoadDataHandler();
     PopUp           = new MessagePopupView();
     Usuario         = (UsuarioModel)Application.Current.Properties["Usuario"];
     IsEditEnable    = false;
     InitializeRequest();
     InitializeCommands();
     InitializeFields();
     AddValidations();
 }
예제 #5
0
 public PublicacionViewModel()
 {
     loadDataHandler  = new LoadDataHandler();
     UsuarioMemoria   = (UsuarioModel)Application.Current.Properties["Usuario"];
     Publicaciones    = new ObservableCollection <PublicacionModel>();
     Usuario          = new UsuarioModel();
     EstaActualizando = false;
     InitializeRequest();
     InitializeCommands();
     InitializeFields();
     TraerPublicaciones();
     PopUp = new MessagePopupView();
 }
예제 #6
0
        public NuevaPublicacionViewModel()
        {
            Usuario         = (UsuarioModel)Application.Current.Properties["Usuario"];
            IsEnableSend    = false;
            SeleccionarFoto = new Command(async() => await SeleccionarFotoCommand(), () => true);
            Enviar          = new Command(async() => await EnviarCommand(), () => IsEnableSend);
            memoryStream    = new MemoryStream();

            string urlCreatePublicacion = Endpoints.URL_SERVIDOR + Endpoints.CREATE_PUBLICACION;

            CreatePublicacionRequest = new SelectRequest <PublicacionModel>();
            CreatePublicacionRequest.SelectStrategy("POST", urlCreatePublicacion);
            PopUp = new MessagePopupView();
        }
예제 #7
0
        public LoginViewModel()
        {
            InicioSesion        = new Command(InicioSesionCommand);
            googleClientManager = CrossGoogleClient.Current;
            loadDataHandler     = new LoadDataHandler();
            string urlCretateUsuario = Endpoints.URL_SERVIDOR + Endpoints.CREATE_USUARIO;
            string urlGetUsuario     = Endpoints.URL_SERVIDOR + Endpoints.GET_USUARIO;


            CreateUsuario = new SelectRequest <UsuarioModel>();
            CreateUsuario.SelectStrategy("POST", urlCretateUsuario);
            GetUsuario = new SelectRequest <UsuarioModel>();
            GetUsuario.SelectStrategy("GET", urlGetUsuario);
            PopUp = new MessagePopupView();
        }
 public ComentarioViewModel()
 {
     PopUp                  = new MessagePopupView();
     Usuario                = (UsuarioModel)Application.Current.Properties["Usuario"];
     Publicacion            = (PublicacionModel)Application.Current.Properties["Publicacion"];
     Like                   = false;
     SalidaButton           = "Gray";
     IsCommentEnable        = false;
     IsCreatorEnable        = Publicacion.Apodo.Equals(Usuario.Apodo);
     IsCommentCreatorEnable = false;
     InitializeRequest();
     InitializeCommands();
     InitializeFields();
     AddValidations();
     TraerPublicacion();
 }
 public UsuarioViewModel()
 {
     PopUp           = new MessagePopupView();
     loadDataHandler = new LoadDataHandler();
     Usuario         = (UsuarioModel)Application.Current.Properties["UsuarioBusqueda"];
     UsuarioMemoria  = (UsuarioModel)Application.Current.Properties["Usuario"];
     IsSeguirEnable  = true;
     InitializeRequest();
     InitializeCommands();
     ActualizarPerfil();
     if (IsSeguirEnable)
     {
         SalidaButton = "Seguir";
     }
     else
     {
         SalidaButton = "Siguiendo";
     }
 }