Proyectos de Subversion LeadersLinked - Services

Rev

Rev 675 | Rev 677 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 675 Rev 676
Línea 222... Línea 222...
222
                        ], ['force_canonical' => true]),
222
                        ], ['force_canonical' => true]),
223
                        'profile' => $this->url()->fromRoute('company/view', ['id' => $company->uuid]),
223
                        'profile' => $this->url()->fromRoute('company/view', ['id' => $company->uuid]),
224
                        'last_message' => $timeElapsedString,
224
                        'last_message' => $timeElapsedString,
225
                        'count_unread' => $unread,
225
                        'count_unread' => $unread,
226
                        'messages_link' => $this->url()->fromRoute('inmail/messages', ['id' => $company->uuid]),
226
                        'messages_link' => $this->url()->fromRoute('inmail/messages', ['id' => $company->uuid]),
227
                        'send_link' => $this->url()->fromRoute('inmail/message/send', ['id' => $company->uuid]),
227
                        'send_link' => $this->url()->fromRoute('inmail/messages/send', ['id' => $company->uuid]),
228
                        'selected' => 1, // Marcar como seleccionado
228
                        'selected' => 1, // Marcar como seleccionado
229
                        'delete_link' => $this->url()->fromRoute('inmail/message/delete', ['id' => $company->uuid]),
229
                        'delete_link' => $this->url()->fromRoute('inmail/messages/delete', ['id' => $company->uuid]),
230
                    ]);
230
                    ]);
231
                }
231
                }
232
            } 
232
            } 
233
            // ========================================
233
            // ========================================
234
            // BÚSQUEDA COMO USUARIO INDIVIDUAL
234
            // BÚSQUEDA COMO USUARIO INDIVIDUAL
Línea 274... Línea 274...
274
                            ], ['force_canonical' => true]),
274
                            ], ['force_canonical' => true]),
275
                            'profile' => $this->url()->fromRoute('profile/view', ['id' => $user->uuid]),
275
                            'profile' => $this->url()->fromRoute('profile/view', ['id' => $user->uuid]),
276
                            'last_message' => $timeElapsedString,
276
                            'last_message' => $timeElapsedString,
277
                            'count_unread' => $unread,
277
                            'count_unread' => $unread,
278
                            'messages_link' => $this->url()->fromRoute('inmail/messages', ['id' => $user->uuid]),
278
                            'messages_link' => $this->url()->fromRoute('inmail/messages', ['id' => $user->uuid]),
279
                            'send_link' => $this->url()->fromRoute('inmail/message/send', ['id' => $user->uuid]),
279
                            'send_link' => $this->url()->fromRoute('inmail/messages/send', ['id' => $user->uuid]),
280
                            'selected' => 1, // Marcar como seleccionado
280
                            'selected' => 1, // Marcar como seleccionado
281
                            'delete_link' => $this->url()->fromRoute('inmail/message/delete', ['id' => $user->uuid]),
281
                            'delete_link' => $this->url()->fromRoute('inmail/messages/delete', ['id' => $user->uuid]),
282
                        ]);
282
                        ]);
283
                    }
283
                    }
284
                }
284
                }
285
            }
285
            }
286
        }
286
        }
Línea 346... Línea 346...
346
                ], ['force_canonical' => true]),
346
                ], ['force_canonical' => true]),
347
                'profile' => $this->url()->fromRoute('profile/view', ['id' => $user->uuid]),
347
                'profile' => $this->url()->fromRoute('profile/view', ['id' => $user->uuid]),
348
                'last_message' => $timeElapsedString,
348
                'last_message' => $timeElapsedString,
349
                'count_unread' => $unread,
349
                'count_unread' => $unread,
350
                'messages_link' => $this->url()->fromRoute('inmail/messages', ['id' => $user->uuid]),
350
                'messages_link' => $this->url()->fromRoute('inmail/messages', ['id' => $user->uuid]),
351
                'send_link' => $this->url()->fromRoute('inmail/message/send', ['id' => $user->uuid]),
351
                'send_link' => $this->url()->fromRoute('inmail/messages/send', ['id' => $user->uuid]),
352
                'selected' => 0, // No seleccionado
352
                'selected' => 0, // No seleccionado
353
                'delete_link' => $this->url()->fromRoute('inmail/message/delete', ['id' => $user->uuid]),
353
                'delete_link' => $this->url()->fromRoute('inmail/messages/delete', ['id' => $user->uuid]),
354
            ]);
354
            ]);
355
        }
355
        }
Línea 356... Línea 356...
356
 
356
 
357
        // ========================================
357
        // ========================================
Línea 631... Línea 631...
631
    }
631
    }
Línea 632... Línea 632...
632
 
632
 
633
    /**
633
    /**
634
     * Envía un mensaje InMail a un usuario específico
634
     * Envía un mensaje InMail a un usuario específico
635
     * 
635
     * 
636
     * Endpoint: POST /inmail/message/send/:id
636
     * Endpoint: POST /inmail/messages/send/:id
637
     * 
637
     * 
638
     * Parámetros requeridos:
638
     * Parámetros requeridos:
639
     * - message: texto plano del mensaje
639
     * - message: texto plano del mensaje
640
     * 
640
     *