Esempio n. 1
0
        public static void DeleteUserFromGroup(IMDBType iMDBType, string groupName, string userEmpId)
        {
            IMGrpNUser iMGrpNUser = new IMGrpNUser(iMDBType);
            iMGrpNUser.DeleteUserFromGroup(groupName, userEmpId);

            KRep.KRepKWSLog.KWSLogAddDeleteUser("Universal", string.Format("{0}[{1}]", groupName, iMDBType.ToString()), userEmpId, KModel.KWSLogType.DeleteUser);
        }
Esempio n. 2
0
 public NRTUtility(IMANADMIN.NRTSession nRTSession, IMDBType iMDBType)
 {
     _nRTSession = nRTSession;
     foreach (IMANADMIN.NRTDatabase item in _nRTSession.Databases)
     {
         if (item.Name.IsEquals(iMDBType.ToString()))
             _nRTDatabase = item;
     }
 }
Esempio n. 3
0
        public static IMDBMovie GetMovie(string title, IMDBType type)
        {
            IMDBMovie movie = DeserializeIMDBMovie(GetDataFromOMDB(new string[] {
                "t=" + title,
                "type=" + type.ToString()
            }));

            return(movie);
        }
Esempio n. 4
0
        public static IMDBMovie GetMovieFromID(string id, IMDBType type, bool tomatoes)
        {
            IMDBMovie movie = DeserializeIMDBMovie(GetDataFromOMDB(new string[] {
                "t=" + id.ToString(),
                "type=" + type.ToString(),
                "tomatoes=" + tomatoes.ToString()
            }));

            return(movie);
        }
Esempio n. 5
0
        public static IMDBMovie GetMovie(string title, bool fullPlot, IMDBType type, bool tomatoes)
        {
            IMDBMovie movie = DeserializeIMDBMovie(GetDataFromOMDB(new string[] {
                "t=" + title,
                "plot=" + fullPlot.ToString(),
                "type=" + type.ToString(),
                "tomatoes=" + tomatoes.ToString()
            }));

            return(movie);
        }