Exemplo n.º 1
0
        public static int AddFolioComment(string userID, string folioID, string comment, DateTime date, int duration)
        {
            Logger.LogDebug("Log Test AddFolioComment.aspx.cs");

            ExternalsMethodDAO obj = new ExternalsMethodDAO();
            return obj.AddFolioComment(userID, folioID, comment, date, duration);
        }
Exemplo n.º 2
0
        public static string CreateUserToken(string username, string password)
        {
            var token = GenerateToken();

            ExternalsMethodDAO obj = new ExternalsMethodDAO();
            obj.AddUserToken(new UserToken
            {
                Token = token,
                User = username,
                Password = password
            });
            return token;
        }
Exemplo n.º 3
0
 public static List<string> GetMediaTypes()
 {
     ExternalsMethodDAO obj = new ExternalsMethodDAO();
     return obj.GetMediaTypes();
 }
Exemplo n.º 4
0
 public static bool AddFolioFile(string userID, string folioID, string fileName, DateTime date, int duration, string mediaType, string relativeLocalPath)
 {
     ExternalsMethodDAO obj = new ExternalsMethodDAO();
     return obj.AddFolioFile(userID, folioID, fileName, date, duration, mediaType, relativeLocalPath);
 }
Exemplo n.º 5
0
 public static bool RemoveTimelineElement(int tapeID, bool isExtra)
 {
     ExternalsMethodDAO obj = new ExternalsMethodDAO();
     return obj.RemoveTimelineElement(tapeID, isExtra);
 }
Exemplo n.º 6
0
 internal static List<Folio> GetAllFolios(string text_search = "")
 {
     ExternalsMethodDAO obj = new ExternalsMethodDAO();
     return obj.GetAllFolios(text_search);
 }
Exemplo n.º 7
0
 public static string CheckLogin(string user, string password, bool isPasswordInput_hashed = false, bool isTokenLogin = false)
 {
     ExternalsMethodDAO obj = new ExternalsMethodDAO();
     return obj.CheckLogin(user, password, isPasswordInput_hashed, isTokenLogin);
 }
Exemplo n.º 8
0
        // Source: https://www.youtube.com/watch?v=gRB5zOswWRY

        public static UserToken GetUserToken(string token)
        {
            ExternalsMethodDAO obj = new ExternalsMethodDAO();
            return obj.GetUserToken(token);
        }