how to show license's name

Topics: Developer Forum, Project Management Forum, User Forum
Jul 4, 2011 at 5:43 AM

hi all ,

I used  PhotoInfo.License  to get photo's license then I get "AllRightsReserved"

  So, how can I get license's name. I want to get a value which have each word is separated by blank (ex: All Right Reserved)

Coordinator
Jul 4, 2011 at 6:18 AM

There's nothing in the Flickr library that will let you do that. Just create a switch statement that will output whatever you want for each license:

string function GetLicenseName(License license)
{
    switch(license)
    {
        case License.AllRightsReserved:
            return "All Rights Reserved";
        // ... etc
    }
}

Sam

Jul 4, 2011 at 6:46 AM

thanks Sam