ListNotifications() public method

public ListNotifications ( string lang = "en", int offset, int limit = 1000 ) : IEnumerable
lang string
offset int
limit int
return IEnumerable
        public void SetNotificationTest()
        {
            Trace.WriteLine("on ticket");

            var os = new OpenStackMember(UserName, Password, TenantName); // with tenant
            var notifications = os.ListNotifications();
            Assert.IsNotNull(notifications);
            foreach (var n in notifications)
            {
                var notification = os.GetNotification(n.NotificationCode);
                var prevStatus = notification.ReadStatus;

                notification = os.SetNotification(n.NotificationCode, "Unread");
                Assert.AreEqual(notification.ReadStatus, "Unread");

                notification = os.SetNotification(n.NotificationCode, "ReadTitleOnly");
                Assert.AreEqual(notification.ReadStatus, "ReadTitleOnly");

                notification = os.SetNotification(n.NotificationCode, "Read");
                Assert.AreEqual(notification.ReadStatus, "Read");

                notification = os.SetNotification(n.NotificationCode, prevStatus);

                notification = os.GetNotification(n.NotificationCode);
                Assert.AreEqual(notification.ReadStatus, prevStatus);
            }
        }
 public void GetNotificationTest()
 {
     var os = new OpenStackMember(UserName, Password, TenantName); // with tenant
     var notifications = os.ListNotifications();
     Assert.IsNotNull(notifications);
     foreach (var n in notifications)
     {
         var notification = os.GetNotification(n.NotificationCode);
         Trace.WriteLine(string.Format("NotificationCode : {0}", notification.NotificationCode));
         Trace.WriteLine(string.Format("DistributionMethod : {0}", notification.DistributionMethod));
         Trace.WriteLine(string.Format("LanguageName : {0}", notification.LanguageName));
         Trace.WriteLine(string.Format("PageName : {0}", notification.PageName));
         Trace.WriteLine(string.Format("ReadStatus : {0}", notification.ReadStatus));
         Trace.WriteLine(string.Format("CreatedDate : {0}", notification.CreatedDate));
         Trace.WriteLine(string.Format("CreatedBy : {0}", notification.CreatedBy));
         Trace.WriteLine(string.Format("LastUpdatedDate : {0}", notification.LastUpdatedDate));
         Trace.WriteLine(string.Format("LastUpdatedBy : {0}", notification.LastUpdatedBy));
     }
 }